• 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

Inner class

 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i have made a note about inner class and access specifiers of inner class.It will be great if you help me to add some point that i might have missed here.


Inner class
public ,private, protected, default, final, abstract, strictfp

Inner class inside the Method
abstract, final, default

Static nested class
static,default

Anonymous Inner class

final

They don�t have constructor.
It can be implementor of interface
Or it can be a subclass
Cannot implement multiple interface
Can either extend a class or implement a interface.
They can be used inside a class ,inside a method or as argument to the method.
[ February 16, 2005: Message edited by: ramya jp ]
 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the table at the bottom of this link
Hope that helps.
[ February 16, 2005: Message edited by: Jay Pawar ]
 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jay thats helped a lot..
reply
    Bookmark Topic Watch Topic
  • New Topic