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
Is c# queue thread safe?
What is ilasm.exe used for?
Are c# strings immutable?
Is there regular expression (regex) support available to c# developers?
Define assert() method? How does it work?
Explain copy constructor?
What is a partial class in c#?
What is ado c#?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
Explain the 3 types of properties in c# with an example?
What is the difference between add and addrange in c#?
Why do we use overloading in c#?
What is Dependency of Injection?
What does using system mean in c#?
Explain About multi level and multiple inheritance how to achieve in .net