Skip to content

What == compares

java String a = new String("hello"); String b = new String("hello"); System.out.println(a == b); System.out.println(a.equals(b));

What is printed?