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.

Which of the following is a method having same name as that of it’s class?

a) finalize
b) delete
c) class
d) constructor

Answer: d
Explanation: A constructor is a method that initializes an object immediately upon creation. It has the same name as that of class in which it resides.

Join The Discussion