Computer Science, asked by ytoshilmaring3167, 1 year ago

The _______ function is used to perform some action when the object is to be destroyed.

Answers

Answered by snehal1137
9

Answer:

The Finalize / Garbage Collector function is used to perform some action when the object is to be destroyed.

Answered by laraibmukhtar55
2

Finalize function is used to perform some action when the object is to be destroyed.

Explanation:

• Finalize is also called garbage collector.

• We called finalize method when an object need to get garbage collected.

• An object needs garbage collection at any time after becoming eligible to it.

• We use finalize method to destroy the object by calling garbage collector.

Hope it helped....................

Similar questions