A

Admin • 828.70K Points
Coach

Q. Which method returns a substring in Java?

  • (A) substring()
  • (B) slice()
  • (C) cut()
  • (D) split()

Explanation by: Admin
substring() is used to get a portion of the original string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.