P

Priyanka Tomar • 35.28K Points
Coach

Q. Which of the following methods is used to compare two strings for equality in Java?

  • (A) equals()
  • (B) compareTo()
  • (C) equalsIgnoreCase()
  • (D) compare()
  • Correct Answer - Option(A)
  • Views: 42
  • Filed under category JAVA

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.


Question analytics