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
Explain the process of polymorphism with an example?
What is string empty?
Are objects passed by reference in c#?
How C# 4.0 supports dynamic programming language?
Define c# i/o classes? List the commonly used classes?
What is difference between internal and protected internal in c#?
What is namespace explain with example?
Which one is trusted and which one is untrusted?
Name some string escape sequences in c#.
Explain the difference between a sub and a function in c#.
Why we need get set property in c#?
What is the use of return in c#?
Is multiple inheritance possible in c#?
Are structs value types c#?
What is default access modifier for class in c#?