compare RSS

Follow our compare RSS feed for all blog posts regarding anything compare. Thanks for reading and we hope you enjoyed your visit. If you're looking for more articles use our search above or visit The Programmer blog for the latest and greatest.

compare, String

Typically programmers become accustom to using the == operator when comparing strings. While this is certainly valid syntax in Java, there is a catch that you should know about. The Catch == compares object references .equals() compares string values Explained == performs a reference equality check, to determine whether the two objects (strings in this case) refer to the same object in the memory. The equals() method...

Read more