Q. Which of the following methods is used to compare two strings for equality in Java? (A) equals() (B) compareTo() (C) equalsIgnoreCase() (D) compare() ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) equals()