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
Difference between a sub and a function in c#.
If the original method is not static you can declare an override method to be static or not?
What are handlers in c#?
How can you prevent escaping on backslashes in C# with string definitions?
Tell me the difference between call by value and call by reference.
What are the advantages of using c#?
What is the base class of all classes in c#?
Why is .net so popular?
What is generic collection in c#?
What is a static field?
What is namespace in oops?
What is meaning of type safety in c#?
What is managed or unmanaged code?
Are structs value types or reference types?
What is the difference between mobile application and desktop application?