Which of these data type value is returned by equals() method of String class?
A. char
B. int
C. boolean
D. All of the mentioned
Answer:A
Which of these data type value is returned by equals() method of String class?
A. char B. int C. boolean D. All of the mentioned
Explanation: equals() method of string class returns boolean value true if both the string are equal and false if they are unequal.