System.out.println("test".getBytes() == "test".getBytes() ? "same" : "diff");
System.out.println("test".getBytes().equals("test".getBytes()) ? "same" : "diff");
In both of those lines diff
is output. They're the same thing so shouldn't it be same
that is output?