Declaration vs Instantiation vs Initialization

Declaration, Instantiation and Initialization are very confusing terms in Java. Let us clear their meanings with example : Declaration A variable is said to be declared when we give name to variable and associate it with a class. Example :- Student stu; (here Student is a class) Instantiation Instantiation means we are creating an object … Read more

Inheritance in Java

Inheritance is the way through which a class acquires all the properties and members of other class. Inheritance represents the IS-A relationship. The class acquiring the properties is called child class and the class from which properties are acquired is called parent class. We make use of ‘extends‘ keyword for inheritance. With inheritance the child … Read more