Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is false about constructor?

a) Constructors cannot be synchronized in Java
b) Java does not provide default copy constructor
c) Constructor can have a return type
d) “this” and “super” can be used in a constructor

Answer: c
Explanation: The constructor cannot have a return type. It should create and return new objects. Hence it would give a compilation error.

Join The Discussion