Following code block when executed doesn't print the hashCodes and Boolean together. However when i do Boolean.toString(a==c) instead of a==c, it gets printed. Any reasons why this behavior
String a = "Hello";
String b = new String("Hello");
String c =b;
System.out.println(a.hashCode()+" "+b.hashCode()+" "+c.hashCode() + " " + a==c);