Hi guys,
public class TestClass
{
public static void main(
String Args[])
{
StringBuffer sb1 = new StringBuffer("String");
StringBuffer sb2 = new StringBuffer("String");
if(sb1.equals(sb2))
{
//lots of code
}
}
}
The question is : will the code reach //lots of code ?
Suprisingly the correct answer is : No.
Can anybody please explain ?