Page 1 of 1

What would be behaviour if the constructor has a return type?

Posted: Wed Jul 13, 2022 7:46 pm
by answerhappygod
a) Compilation error
b) Runtime error
c) Compilation and runs successfully
d) Only String return type is allowed