aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Abstract and interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Abstract and interface" Watch "Abstract and interface" New topic
Author

Abstract and interface

Arathi Rajashekar
Ranch Hand

Joined: Nov 20, 2001
Posts: 112
Hi all,
Can an interface be declared abstract. I tried to compile the following code
public abstract interface a{
public void b();
}
It compiled fine. with out errors. If we can declare an interface as abstract interface, what is the use of it?


Arathi<br />Sun Certified Java Programmer
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Here is an answer
http://java.sun.com/docs/books/jls/second_edition/html/interfaces.doc.html#30820
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Fei Ng
Ranch Hand

Joined: Aug 26, 2000
Posts: 1242
Becuase they are abstract?? Still not quite when to use interface though.
good luck.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Abstract and interface