Hi, I just wanna know why the following programme giving the value true at runtime?
'cause as far as I'm concerned i, which is a reference of Integer classs, pointing here a new object, and i1 is pointing a object on integer pool. So,why the result can be true? thanks in advance for help.
Originally posted by Pawan Arora: Hi, thanks for that, I ve one more question.
Fascinating question, as Paul Beckett has told you, but it is independent of the original question, so might have been better in a new thread. Please maintain indentation inside the code tags; that is what they are designed for.
And what happened when you compiled your original program with the -source 1.4 options?