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

Popular posts from this blog

What are POJO classes in spring? What is the use of POJO Class, and How to create POJO classes.

How to create React project using command prompt?