What is Output......?public class Main{ public static void main (String[]args){ String s = new String ('JAVA'); String s2 = 'JAVA'; if (s == s2){ System.out.println ('=='); } if (s.equals (s2)){ System.out.println ('equals'); } } } o/p equals - Study24x7
Social learning Network
86 followers study24x7 22 Nov 2019 05:56 PM study24x7 study24x7

What is Output......?


public class Main{ public static void main (String[]args){ String s = new String ("JAVA"); String s2 = "JAVA"; if (s == s2){ System.out.println ("=="); } if (s.equals (s2)){ System.out.println ("equals"); } } }

o/p equals

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles