adplus-dvertising
frame-decoration

Question

The method called by clients of a class to explicitly release any resources like network,connection,open files etc.When the object is no longer required?

a.

Finalize()

b.

End()

c.

Dispose()

d.

Close()

Posted under C# programming

Answer: (c).Dispose()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The method called by clients of a class to explicitly release any resources like network,connection,open files etc.When the object is no longer required?