Describe ways of cleaning up objects.

Answer Posted / sugumar.r

Actually, there are two ways resources can be cleaned up
from our application.( Garbage Collection)
1. Dispose()- By default system will release all non
referenced variables from memeory.
2.Finalize()- We can explicitly perform Cleaning process
using Finalize method(Destructor)

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When was c# created?

530


What are bitwise logical operators?

479


How many types of constructors are available in c#?

535


What are the access modifiers in c#?

497


How to implement singleton design pattern in c#?

467






What are different types of classes in c#?

481


What is the difference between dynamic and var in c#?

458


Why do we overload constructors?

485


Can a sealed class be used as a base class?

527


How many bytes is a long c#?

459


Are cao stateful in nature?

471


What are the differences between system.string and system.text.stringbuilder classes?

484


Can we have only “try” block without “catch” block in c#?

475


What is default access specifier for class in c#?

473


Why do we need serialization?

430