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 package com.kb.constructorchain;   […]

Share this article on