File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface" Watch "Interface" New topic
Author

Interface

Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
Does someone can Explain to me what is interface?
Thanks
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
sure thing.
an interface is like an abstract class.
as u may know, an abstract class is a class that SOME of its methods are abstract and some maybe not.
an interface is like an abstract class which ALL methods are abstract by default.
interfaces do not provide implentation of methods, they only define behaviours - ie signatures of methods.
class can implement an interface (unlike a class which they extend) and they can do it with with multiple interfaces (they can implement many) as opose to only 1 in extends.
for better refrence to interfaces u can check the sun tutoriol on it in http://java.sun.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interface
 
Similar Threads
Time Capsule
Home interface or Home Interface stub
Regarding Interfaces
Writing an Interface
How To Call Two Different Classes From the Main Program Using the Same API?