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

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
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