String.equals(): Compares the content of two Strings; use equals(), not ==, for String comparison.
How to apply it: Identify the bug when code uses == instead of .equals() to compare Strings.
Course: AP Computer Science A · Unit: Using Objects
Practice questions about String.equals() on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.