This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "inner classes" Watch "inner classes" New topic

inner classes

Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
1> can the name of inner class and enclosing class be same?
2> is this true?
we cann't access a data member declared in other method from local class or from anonymous class?
3> are we accessing non-static members declared in enclosing class from non-static anonymous class as follows
is this the difference bet. local and anonymous class?
nowait shen

Joined: Jul 27, 2003
Posts: 11
1. No
2. I guess it's true
3. we access that with nonstaticmemeber()
see the following example
wood burning stoves
subject: inner classes
Similar Threads
Question about Master Exam question
dan's single topic exams-anonymous arrays
accessibility modifiers for classes
Anonymous Inner class
Inner classes in static context