SCJP 1.4
cmbhatt
SCJP 1.4
a class created inside the Bar class, would be subclass
of Bar only.
cmbhatt
a class created inside the Bar class, would be subclass
of Bar only.
this statement is not clear. inside the bar class means what?
cmbhatt
If not now then never.
SCJP 1.4
It is possible to derive from inner classes, so I rather prefer not to use "sub-class" term (I consider it as wrong) if you just want to say, that every inner class instance is connected to instance of outer class.
Originally posted By Shyam,
the anonymous inner class created in line Boo f = new Bar() { }; is the sub-class of which class ? of Boo or Bar
cmbhatt
What do you mean by runtime class? (I know only about java.lang.Runtime class)
I couldn't find any reference in JLS 3.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org