This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes a good tutorial on Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "a good tutorial on Interfaces" Watch "a good tutorial on Interfaces" New topic
Author

a good tutorial on Interfaces

Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
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

Joined: May 13, 2003
Posts: 27
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 ]

When faced with an easy thing to do and a hard thing to do, always pick the right thing to do!<p><a href="http://yadav.shorturl.com" target="_blank" rel="nofollow">Rajinder Yadav</a>
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
I wrote one a long time ago that can be found here. You might find that useful.
Corey


SCJP Tipline, etc.
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
Thnaks a lot Rajinder and Corey.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a good tutorial on Interfaces
 
Similar Threads
Action Interface
HashTable
class inheritance details
URLyBird interface?
Java Basic