on your second post. I believe the heritage diagram from Mubeen is right.Here e3 doe not inherit from e2.
i got it that it is because of that Switch Run tim phenomenon, But how come compiler knows what is going to be called.....
Still in both cases error should not come,level 3 is sub class to level1 and level2 . so once it is not reachanbel and once it is reachable....
for anyone whose primary interest is in simply taking the SCJP exam, rather than esoterica which aren't on the exam: the real exam will not have any questions which depend on knowing about the string pool and whether or not String literals are eligible for GC. The test authors have deliberately avoided this issue because it's way too nitpicky, even for them. Now mock exams may well ask questions which require this knowledge - but the real exam will not.
Can a labelled break statement be used to transfer control out of if {} Block. According to Khalid Mughal book it cannot..
Originally posted by Jianfeng Qian:
What the different between compile and runtime ?
Sometime I was comfused by it,Which kinds of prolbems will happen when compile ,and what when runtime.