Which method is implicitly called when an object is created

A) Main Method
B) Constructor Method
C) Destructor Method
Explanation: Constructor is the method which is implicitly created when ever a class is instantiated

Showing Answers 1 - 7 of 7 Answers

Bhuvneshwar P Sharma

  • Jan 2nd, 2006
 

Ans is B

When an object is created Constructor is get called first. A default constructor is created automatically if we do not create a constructor inside a class.

(Reach me on http://bpsharma.in )

When a obeject create then constructor of the class execute at that moment. If you don't define any constructor in a class then JVM pass a default constructor but if you define any parametrized constructor in class then this is programmers responsiblity to pass default constructor in that class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions