adplus-dvertising
frame-decoration

Question

Which function is used to perform some action when the object is to be destroyed?

a.

finalize()

b.

delete()

c.

main()

d.

none of the mentioned

Posted under Java Programming

Answer: (a).finalize()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which function is used to perform some action when the object is to be destroyed?