What will be the output of the following code?
public class Test {
public static void main(String[] args) {
String s1 = "Java";
String s2 = new String("Java");
String s3 = s2.intern();
System.out.println(s1 == s2);
System.out.println(s1 == s3);
System.out.println(s2.equals(s3));
}
}
4 - 0
hey guys,
I started this channel to teach you all the things that I have learned ,to help you along the way.
I will teach you how to learn new languages .my goal is to provide you the best advice I can through tutorials so that you can
crack the dream company you so deserve.
you can follow me on my Instagram page: javaCodeMakeEasy
25 September 2020