This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Difference between interface and Abstract Interface