Interviews3 answers
Does constructor return any value in Java?
3 Answers
Yes it always return reference of object for which it was executed by run time environment. But constructor does not have any return type, this is because constructor always return reference of object which is fixed. It means type of reference will not be changed so no need to specify return type of constructor.
Atul SinghPosted Sep 22, 2015, 12:01 AM EDT
constructor doesn't have any return type
Shweta LodhaPosted Apr 23, 2014, 8:57 AM EDT
no
Munesh SharmaPosted Apr 23, 2014, 8:54 AM EDT


