File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Certification
»
Programmer Certification (SCJP/OCPJP)
Author
Abstract and interface
Arathi Rajashekar
Ranch Hand
Joined: Nov 20, 2001
Posts: 112
posted
Dec 21, 2001 16:06:00
0
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
posted
Dec 21, 2001 16:09:00
0
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: 1241
posted
Dec 21, 2001 17:26:00
0
Becuase they are abstract?? Still not quite when to use interface though.
good luck.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Abstract and interface
Similar Threads
Can interface be abstract?
Interface question
Diff bw Abstract class and Interface
interface
Fields of interface - are they public?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter