File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes abstract and interface questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "abstract and interface questions" Watch "abstract and interface questions" New topic

abstract and interface questions

Sambasiva Suresh Kumar Dontamsetti

Joined: Apr 19, 2004
Posts: 6
1. what is the difference between Abstract and Interface Classes?
2. when do u go for Abstract and for Interfaces?
[ EJFH: Remove the URGENT!!! ]
[ April 22, 2004: Message edited by: Ernest Friedman-Hill ]
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Doesn't look urgent to me.
And not advanced.
Urgent to read the nettiquette.
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

moving this to the Intermediate forum.
Also, please don't mark your posts as "URGENT!!!" if anything it discourages people from helping you.
Warren Dew
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
An interface has only the interfaces to methods - the prototypes for a method call - and none of the implementations (function bodies). An abstract class may have some of the methods actually implemented.
Also, in Java, a class can implement any number of interfaces, but may only inherit directly from one class, abstract or not.
It is sorta covered in the JavaRanch Style Guide.
subject: abstract and interface questions
It's not a secret anymore!