What is the difference between these statements
obj=null and obj.dispose()
Answer Posted / pushparaj pentakota
obj=null is remove the reference to object only but that
object will be existed but obj.dispose() is clear the
reference and as well as clear the object also from the
memory.so obj.dispose() is best to use but in some cases not.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does void mean in c#?
What are circular references? How garbage collection deals with circular references.
Which is more efficient for loop or while loop?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
How to put assembly in gac?
What is difference between asp net and c# net?
Define a partial class?
What is a service layer c#?
What is a interface in c#?
Explain the ways to deploy an assembly?
What is uint64?
Can non-default constructors be used with single call sao?
What is default access specifier for class in c#?
What are custom attributes in c#?
Can a static class contain non static members?