Discussion Forum : Searching And Modifying A String
Question -

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

Options:
A .  char
B .  int
C .  boolean
D .  All of the mentioned
Answer: Option C

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

if they are unequal.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *