Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes Static inner class inside Interface!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Static inner class inside Interface!!" Watch "Static inner class inside Interface!!" New topic

Static inner class inside Interface!!

Rajendra Deshpande
Ranch Hand

Joined: Nov 24, 2000
Posts: 40
Can static inner classes be part of an Interface and of what significance is such a class.
thanks and regards,
Avikal Dixit

Joined: Dec 24, 2000
Posts: 2
Well I have same kind of question hovering in my mind, cause, as far as i know interfaces have only methods that are also code less. In any case i was thinking where will I place inner classes. in side a method(they have no code remember) or inside any other {}. Please let us know?
I agree. Here's the link:
subject: Static inner class inside Interface!!
Similar Threads
Inner class
What class must an inner class extend ?
member interface
This program is going to print Inner created. please explain "new Seputura.Inner();" how it works
Declaration and Access confusion...