Sail E0 Webinar
Question
Which of these data type values 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 strings are equal and false if they are unequal.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers