string#intern()
The famous java == and .equals()
January 16, 2015 | Mudassir ShahzadIn Java, there is a difference between java == and equals() method to compare primitives (int, float etc), strings and objects. This is a short article just to clear the difference between the both.