KnowledgeBoat Logo
|

Computer Applications

Which of these data type value is returned by equals() method of string class?

  1. char
  2. int
  3. boolean
  4. All of these

Java String Handling

8 Likes

Answer

boolean

Reason — equals() method checks if contents of two strings are same or not. The result is true if the contents are same otherwise it is false.

Answered By

5 Likes


Related Questions