File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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.
I agree. Here's the link:
subject: inner class of interface
It's not a secret anymore!