The app for independent voices

Most Java developers get this wrong.

What does this print?

String a = "Java";

String b = "Java";

String c = new String("Java");

System.out.println(a == b);

System.out.println(a == c);

System.out.println(a.equals(c));

Feb 17
at
6:37 AM
Relevant people

Log in or sign up

Join the most interesting and insightful discussions.