A

Admin • 833.24K Points
Coach

Q. What will be the output of:
System.out.println("Java".substring(1, 3));

  • (A) av
  • (B) Ja
  • (C) va
  • (D) avJ

Explanation by: Admin

substring(1,3) includes characters at index 1 and 2: 'a' and 'v'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.