R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to find the length of a string in Java?

  • (A) length()
  • (B) size()
  • (C) getLength()
  • (D) length
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`length()` is the method to find string length.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.