File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Difference between interface and Abstract Interface
 
Similar Threads
i want answer
Interface
difference between abstract class and an interface
abstract class Vs interface
what are the most common questions on Java job interviews?