Java / Interface
Are interfaces also inherited from Object class?
No, only classes in java are inherited from Object class. Interfaces in java are not inherited from Object class. But, classes which implement interfaces are inherited from Object class.
An interface implicitly declares one method for each public method in Object. This way the equals and Object class method is implicitly declared as a member in an interface.
More Related questions...