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 difference b/w interface and class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference b/w interface and class" Watch "difference b/w interface and class" New topic

difference b/w interface and class


Joined: Dec 16, 2001
Posts: 1
what is the difference between interface and class?
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Interface: contract to implement a specified API.
Class: Any java object.
We can extend only one class, but we can implement many interfaces.
You had better start reading any java book as this is essential to Java!
NOTE: Your name doesn't fit with the Ranch naming policy. Please read it here and re-register with a valid name.
I agree. Here's the link:
subject: difference b/w interface and class
It's not a secret anymore!