Saturday 1 December 2012

why any pogram can not run without any constructors?

Leave a Comment
JAVA compiler default first initialize the parent class constructor.

Constructor initialization start from top to down in hierarchy of class.because every class default extends Object class so it is must there be an constructor in every class in java.



0 comments:

Post a Comment