I'm looking at a number of Java tests and came across lots of questions like this. I really don't like it.
Read this piece of code carefully
if("String".trim() == "String".trim())
System.out.println("Equal");
else
System.out.println("Not Equal");
Answers
- the code will compile an print "Equal".
- the code will compile an print
( Read more... )