aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Strings
  • To compare two strings for equality _____________ method ...
Multiple choice

To compare two strings for equality _____________ method is used.

  1. equals()

  2. regionMatches()

  3. equalsIgnoreCase()

  4. reverse()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

 The 'equals()' method is used to compare two strings for equality.

Keep practicing — related questions

  • The _____________ method compares a specific region inside a string with another specific region in another...
  • The _________ method is used to perform a comparison that ignores the case differences, i.e. it considers A...
  • Which of the following methods are defined in the String class for comparing the Strings?
  • Which of the following methods are defined in the String class for comparing the Strings?
  • Which of the following methods is/are defined in the String class for comparing the Strings?
  • Which of the following methods is/are defined in the String class for comparing the Strings?
  • The ___________method determines whether the string in question ends with a specified string.
  • Which of the following methods is/are defined in String class for comparing strings?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy