Question: Why are destructors rarely used in Java but essential in C++?

Why are destructors rarely used in Java but essential in C++?

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Destructors are the counterparts of Constructors and destructors are spontaneously called while the objects get lost Mainly Destructors are employed i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Concepts of Programming Languages Questions!