This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a good tutorial on Interfaces

 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone suggest a good tutorial on Interfaces. I want that it should tell me how create nested interfaces. Interface in an interface and class and class in an interface.
 
Rajinder Yadav
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can point you to the basic of java interface from sun java tutorial.
some of the things you need to understand about interfaces is that:
1 they are 'static abstract' by default.
2 all methods are 'abstract public'
3 all fields (member variables) are 'public static final'
also an inner interface is really like a top level nested class since an interface is implicitly static, you can read about nested class here on javaranch campfire stories, Getting in Touch with your Inner Class
[ May 15, 2003: Message edited by: Rajinder Yadav ]
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote one a long time ago that can be found here. You might find that useful.
Corey
 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnaks a lot Rajinder and Corey.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic