File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes inner class of interface 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 "inner class of interface" Watch "inner class of interface" New topic
Author

inner class of interface

Sunita Vontel
Ranch Hand

Joined: Aug 28, 2000
Posts: 72
please see this code

Is a class defined inside an interface implicitly static? How do I access the class b in the above code.
Thank you
Erin Waite
Greenhorn

Joined: Jan 24, 2002
Posts: 6
Hi, Sunita

A class defined inside an interface is implicitly static. To access the class b in the your code, simply write
b objb = new b();
Corrrect me if I'm wrong please.
Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inner class of interface
 
Similar Threads
Why Classes in interfaces
inner interface.........help me
Anonmyous class
Argument-Defined Anonymous Inner Class