Skip to content

Glossary: Java Basics

equals

Also written: equalsIgnoreCase, ==

The correct way to check whether two strings hold the same text. `==` instead checks whether two names point to the very same object, so it can be false even for matching text.

Where the book teaches it

Related terms

ReferenceStringRecord