Question: If a class has this method, it is called automatically just before an instance of the class is destroyed by the Java Virtual Machine. a.

If a class has this method, it is called automatically just before an instance of the class is destroyed by the Java Virtual Machine. 

a. Finalize

b. Destroy

c. Remove

d. Housekeeper

Step by Step Solution

3.47 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct answer is a Finalize When an instance of a class is no longer needed the Java Virtual Ma... 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 Starting Out With Java From Control Structures Questions!