File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface" Watch "Interface" New topic


Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
Does someone can Explain to me what is interface?
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
I agree. Here's the link:
subject: Interface
jQuery in Action, 3rd edition