Constructor Chain

As we all know that Constructor in java always executes when we create an object. But what is the order of execution of constructors when we have parent child relationship ? Always constructor’s default first statement is super(); which means it calls super class constructor. Let’s see it with an example Example1.java package com.kb.constructorchain;   […]

Share this article on