Java Specification says that we cannot create an object for an Interface but in the init (ServletConfig config) Syntax we are passing an object of ServleConfig which is an interface. Similarly in the service method we pass ServletRequest, ServletResponse objects.

Please clarify Java says that Multiple inheritance is not possible but every class extends Object class and we can extend a class explictly. It means that a class is extending 2 classes please clarify

Question asked by visitor suman