In case of inheritance what is the execution order of constructor and destructor?



In case of inheritance what is the execution order of constructor and destructor?..

Answer / Keerti Pandey

In Java, constructors are called in the order of creation of objects (child class first, then parent class). Destructors do not exist in Java.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do I convert a string to an int in java?

1 Answers  


What is the use of default method in interface in java? Explain

1 Answers  


Explain wait(), notify() and notifyall() methods of object class ?

1 Answers  


What are the advantages of functions?

1 Answers  


What is java and its types?

1 Answers  


Brief the life cycle of an applet.

1 Answers  


What for read() function?

3 Answers  


List some important characteristics on jre

1 Answers  


What are the two types of java?

1 Answers  


What are implicit objects in java?

1 Answers  


What does nextint () do in java?

1 Answers  


What is the difference between Array and Hash Table?

1 Answers   Impetus,


Categories