Let's say I have two strings:
String1 = "hi";
String2 = "hi";
Is String1 == String2 true?
Is String1.equals(String2) true?
What exactly is the difference between these two statements? When do those differences come up?
From what I saw online, it has to do with a reference...or something....but I find it confusing.
Can someone explain it in a way that's easy to understand?