OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."
OCPJP 1.6
So the problem was the distraction from different compile error messages created by my compiler
OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."
Helen Ma wrote:
2. What should be return from n.get() ? It must be Number. Therefore, you can assign Number aNum= n.get(); where aNum is a null.
Reason:
The compiler only knows n takes a Number type. This is the only information it knows.
neha chaukar wrote:please explain me why the code will compile(example given in kathy sierra for scjp 5)
<snip>
neha chaukar wrote:yeah that is what i think.But in book it given that it will compile..
Consider Paul's rocket mass heater. |