There are numerous ways to test for equality. == works fine for primitive types, but not for objects such as strings, etc. Why is this so? Discuss why == doesn't work when utilizing Strings but does for integers and doubles.
Criteria: Your answer to the topic should be about 1-2 paragraphs long. Go beyond just providing the answer but include analysis, insight, contrast, or parallels to personal experiences.
Ref: Dean, J., Dean, R. (2008) Introduction to Programming with JAVA, third edition. McGraw-Hill Higher Education.