al am wrote:
Hi people! First, sorry for me bad english.
I want to get the certification, but I have some troubles.
I can not understand why this code NOT compile in the lines 20 and 21, but it compile in line 19.
Can anyone help me? Thank a lot!
al am wrote:
I can understand the things that you are saying about lines 20 and 21, but I can not understand the things that you are saying about line 19.
If line 20 NOT compile ok, so, We could say "X[] == X[][]" will not compile for any X (X is an Object, not a primitive type), but it is not true.
I can not understand why it NOT compile for any X, witt exception of X = Object.
Again, sorry for me bad enlgish. I hope you can read it ok.
.
al am wrote:
- IN GREEN COLOR, that Object[] and Object[][] are not in the same hierarchy, so hence, Why does it compile?
THANKS!
Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
al am wrote:
Let me explain to you through the next chart what is my problem.
For resolve it I had the next premise: "Two object are comparable (== operator) if they are in the same hierarchy"
I suppose that the next hierarchy chart that I did is correct, if it is not correct, please, let me know it.
![]()
al am wrote:
Henry said that Object[] is an Object, and Object[][] is an Object. I am agree with it. But he never say that they are in the same hierarchy!
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |