aspose file tools*
The moose likes Java in General and the fly likes Difference between interface and Abstract Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference between interface and Abstract Interface" Watch "Difference between interface and Abstract Interface" New topic
Author

Difference between interface and Abstract Interface

Kriti Garg
Ranch Hand

Joined: Sep 13, 2004
Posts: 50
Hi All,

Is there any difference between Interface and Abstract Interface
or
its just obsolete to user abstract keyword before interface?


Kriti
J Williams
Greenhorn

Joined: Nov 13, 2004
Posts: 10
I believe the answer is that the abstract part is simply implied whether you write it or not. I wouldn't call it obsolete, just a shortcut. An interface is always abstract so it is not necessary to specify it as abstract. Think of an interface as an abstract class except an interface's methods are all abstract unlike an abstract class which may have non-abstract methods.
[ December 16, 2004: Message edited by: J Williams ]

"Three people cannot keep a secret." SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between interface and Abstract Interface