When we create any
String, that String goes to the String pool, and when another String, with the same value, is created, this new String points to the old one(with the same value), right?
The following code prints "False", WHY? Can anyone help me?
1: Byte b1 = new Byte("127");
2:
3: if(b1.toString() == b1.toString())
4: System.out.println("True");
5: else
6: System.out.println("False");