a) Compilation error
b) Runtime error
c) Compilation and runs successfully
d) Only String return type is allowed
What would be behaviour if the constructor has a return type?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What would be behaviour if the constructor has a return type?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!