File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Inner class or methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Inner class or methods" Watch "Inner class or methods" New topic

Inner class or methods

Rachna Chaturvedi

Joined: May 02, 2002
Posts: 21
Hi all,
which is a better Object oriented design - have Inner classes or methods ., if the same result can be obtained using either of the ways .
I have come up with this query while i was designing my gui and event handlers for FBN.
Thanks in Advance
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Well when it comes to listeners, I tend to have Anonymous inner classes, that call methods in the class.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Inner class or methods
It's not a secret anymore!