Hi All,
Integer i=new Integer("11");
if(i.toString() == i.toString())
System.out.println("Equals");
else
System.out.println("Not Equal");
When i run the program it returns "Not Equal" .
The problem is when i change the value 11 as 10.
The output it was generating "Equals". Can any one tells why it behaves
different when we change the value.
Thanks
Laxmana