Examveda
Examveda

Which of the following methods is used to compare two strings for equality in Java?

A. equals()

B. compareTo()

C. equalsIgnoreCase()

D. compare()

Answer: Option A


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings