Home » JAVA Programming » Strings » Question
  1. Which of these data type value is returned by equals() method of String class?
    1. int
    2. boolean
    3. char
    4. All of these
    5. None of these
Correct Option: B

equals() method of string class returns boolean value true if both the string are equal and false if they are unequal.



Your comments will be displayed only after manual approval.