HCl Interview Question 3+ experience ?

 HCL Interview Question ? What is the Output of this Program?

Program:

public class Test1 {

public static void main(String[] args) {
String str1=new String("Test");
String str2="TEST";
System.out.println(str1==str2);
System.out.println(str1.equals(str2));

}

}

**********************************************************

O/P :-  false
            false

Comments