A

Admin • 831K Points
Coach

Q. If you run the code below, what gets printed out?String s=new String ("Bicycle"); int iBegin=1; char iEnd=3; System.out.println (s.substring (iBegin, iEnd));

  • (A) Bic.
  • (B) ic.
  • (C) icy.
  • (D) error: no method matching substring(int, char).
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.