File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Regarding Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding Interfaces" Watch "Regarding Interfaces" New topic

Regarding Interfaces

praveen raaj

Joined: Nov 30, 2009
Posts: 11
Hi Friends,
Object class is a super class for all classes,Right?so what about Interfaces?
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

An interface is not a class.

[My Blog]
All roads lead to JavaRanch
Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
What exactly you want to ask?
Marco Ehrentreich
best scout

Joined: Mar 07, 2007
Posts: 1294

Hi Praveen,

there is simply no concept like a "global super interface" I think the reason is simply because it wouldn't make much sense to define an abstract global interface all classes must implement. With "Object" that's another thing because it doesn't only provide an abstract interface but instead "real" functionality which is required for all objects in Java to work properly with core concepts and APIs. I hope this makes it clearer.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46375
But whenever you instantiate an interface, usually by making a class which implements that interface, that class extends java.lang.Object.
I agree. Here's the link:
subject: Regarding Interfaces
It's not a secret anymore!