Comment on Tutorial - equals( ) Versus == in Java By Mashoud
Comment Added by : Fins
Comment Added at : 2011-12-14 04:40:09
Comment on Tutorial : equals( ) Versus == in Java By Mashoud
Hi Guys, thanks for sharing this... I have some more doubt.
1. String s1= new String("Hello");
Here, whether s2 will point to the same location as s1?
2. String s1="Hello";
String s2=new String("Hello");
What will be the output of these 2 scenarios?