I've checked OCAJP8: 1Z0-808 syllabus It's not there but It is mentioned in OCPJP8: 1Z0-809 but as Campbell said you better refer Oracle's official site for such information which is always up to date before taking any exam.
Neal Kornreich wrote:Do you know if anonymous classes are on the OCA exam?
Liutauras Vilda wrote:I think nested inner class can access enclosing classes private members
No, enclosing class can access private members of inner class.
not other way round.
Yes It is all about wording that's why hats off to those who document JLS.
But I might misunderstanding the wording.
Agreed since the book clearly explains The values in each case statement must be compile-time constant values of the same data type as the switch value under the heading of Compile-time Constant values.
Junilu Lacar wrote:I think the book is referring to the switch part, not the case selectors.
I don't think so since a source file (a .java file) can have code of another class which doesn't have access to the private member of another class defined in the same source file.
Stephan van Hulst wrote:An overview:
private: Only code within the same source file can access the member.