3
Reply

Does constructor return any value in Java?

Kunal  Gautam

Kunal Gautam

11y
966
0
Reply

    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.

    constructor doesn't have any return type

    no