aspose 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
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: 14350
    
  22

See your other post.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Interface