Meaningless Drivel is fun!*
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: 14074
    
  16

See your other post.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interface
 
Similar Threads
How To Call Two Different Classes From the Main Program Using the Same API?
Home interface or Home Interface stub
Time Capsule
Writing an Interface
Regarding Interfaces