what is class in java?
what is object in java?
what is interface in java and use?
what is inheritence and its type?
A class is a blueprint through which an object is created.
An object is a runtime entity. In other words object is an instance of a class.
An Interface is a collection of methods with empty implementations and constants variables ( variables with static and final declarations ). All the methods in an interface are "public and abstract" by default. Since interfaces are abstract in nature so they can not be directly instantiated.An imp use of interface is to provide java, the property of multiple inheritance.
An Inheritance is a process through which we can inherit all the properties and method of base class into derived class. Java supports two types of inheritance:
Multi Level Inheritance