aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes anonymous class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "anonymous class?" Watch "anonymous class?" New topic
Author

anonymous class?

Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
It is said: Classes defined in methods can be anonymous, in which case they must be instantiated at the same point they are defined. These classes can�t have explicit constructor and may implement interface or extend other classes.
Can you give me simple example please?


Thanks, AR
SCWCD 5, SCJP 1.4, OCA (PL/SQL)
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343



"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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anonymous class?