• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Static nested Interface

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can some spread lights to the behaviour of this Static nested interface.
Can some one point me to some materials on Inner classes
regs
Vivek Nidhi
[ December 05, 2003: Message edited by: Vivek Nidhi ]
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,
There is static inner class(top-level nested class). But there is no static inner interface.
Basically the interface methods have to be overridden by some implementing class. If u have an inner static interface, it's like declaring it both abstract and static (which is not possible).
Also static methods cannot be overridden. (Though it can be redefined in the subclass).
If you take Dan's chapter-wise test on inner classes you can understand it well through the explanation provided by him. I think there is a link to his site in javaranch mock exam list.
Hope this helps.
Kalai
 
reply
    Bookmark Topic Watch Topic
  • New Topic