Vidyalelo
Java Programming · Q119

Constructors and Methods

Programming · Java Programming · question 119

Q119

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

A.
Compilation error
Answer
B.
Runtime error
C.
Compilation and runs successfully
D.
Only String return type is allowed

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board