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's the difference between a method and a procedure?
What is gridview c#?
What are annotations in c#?
Define thread? Explain about multithreading?
Why do we need constructors?
what is the meaning of Object lifetime in OOPS
How do I open the console?
Is unity object oriented?
What are the advantages of using partial classes?
What is a namespace server?
Are tuples mutable c#?
Are multiple data types stored in System.Array?
Describe how a .net application is compiled and executed
What is the lock statement in c#?
Why dependency injection is used in c#?