public class MainClass { public static void main(String[] argv) { String a = new String("a"); String b = new String("a"); if (a == b) { System.out.println("=="); } } }