File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "a good tutorial on Interfaces" Watch "a good tutorial on Interfaces" New topic

a good tutorial on Interfaces

Anupam Sinha
Ranch Hand

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

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="" 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.

SCJP Tipline, etc.
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1090
Thnaks a lot Rajinder and Corey.
I agree. Here's the link:
subject: a good tutorial on Interfaces
It's not a secret anymore!