A

Admin • 802.91K Points
Coach

Q. In Java, what is the purpose of the endsWith() method of a String object?

  • (A) To check if the string ends with a specified character
  • (B) To append a character to the string
  • (C) To check if the string starts with a specified character
  • (D) To check if the string contains a specified substring
  • Correct Answer - Option(A)
  • Views: 8
  • 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.