Basic and Advance Java Question:
Download Questions PDF

How is it possible in Java Programming for two String objects with identical values not to be equal under the == operator?

Answer:

The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.

Download Java Interview Questions And Answers PDF

Previous QuestionNext Question
How are this() and super() used with constructors in Java Programming?What an I/O filter in Java Programming?