==operator and object references
equals()method for strings
This chapter discusses two things:
These are crucial concepts in programming, and can be confusing. It demands careful study. This chapter was written as my best effort to answer the questions of confused students.
You might wish to study this carefully, as a pre-emptive strike against confusion.