1.

Function equals() is _______________ and equalIgnoreCase() is _________________(a) Case Insensitive, case insensitive(b) Case sensitive, Case insensitive(c) Case sensitive, case sensitive(d) Case insensitive, case sensitive

Answer» Right answer is (b) Case sensitive, Case insensitive

The best I can explain: Both the functions return Boolean value. The function equal() is case sensitive and returns false even if a single character is case different in two strings. The other function ignores the case sensitivity and only checks if the spellings are same.


Discussion

No Comment Found

Related InterviewSolutions