A

Admin • 825.56K Points
Coach

Q. What does this return?
"abcde".substring(2);

  • (A) ab
  • (B) abc
  • (C) cde
  • (D) de

Explanation by: Admin
substring(2) returns the string from index 2 to the end, which is "cde".

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.