What would be behaviour if the constructor has a return type?
Posted: Wed Jul 13, 2022 7:46 pm
a) Compilation error
b) Runtime error
c) Compilation and runs successfully
d) Only String return type is allowed
b) Runtime error
c) Compilation and runs successfully
d) Only String return type is allowed