File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) 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 » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

Interface

Gaurav Pavan Kumar Jain
Ranch Hand

Joined: Mar 19, 2007
Posts: 168
what are the major difference between Interface and Abstract method
Mayur Ramgir
Greenhorn

Joined: Sep 26, 2007
Posts: 8
There are few differences with abstract class and interface. One obvious difference is that abstract class can implement methods it means abstract class can declare whole method body. On the other hand interfaces only declare method signature, they don�t implement method itself.

Also, you implement interface and extend abstract class. It means you have to implement all the declared methods from interface. Whereas in case of abstract class, you need to implement only abstract methods.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13872
    
  10

See your other post.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
wood burning stoves
 
subject: Interface
 
Similar Threads
Home interface or Home Interface stub
How To Call Two Different Classes From the Main Program Using the Same API?
Regarding Interfaces
Writing an Interface
Time Capsule