Constructor does not allocate memory for the object/instance, that is done by new. what is the role of constructor is to initialize the instance variables. Now there are two issues which needs attention and I'd like to confirm with you ranchers
1. when I donot write any constructor in my class Java provides one, which we usually say that intializes the instance variables to their default values, but I think default construtor doesn't do anything as any variable screated on heap is automatically initialized, am I right?
2. What does constructor returns ? Current Object i.e this that means object reference as this is a reference to the current object. So I understand the process as such. new allocates memry and constructor is called by passing this to the constructor and the only code which is present in default constructor is return this and in paramterized constructor , return this statement is automatically added?
Any suggestions or additions....