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 is managed code?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Explain the difference between pass by value and pass by reference.
How do you escape in c#?
Wcf and what is difference between wcf and web services?
What is the difference between const and readonly in c#.net?
What is inline function in c#?
Explain the various types of classes used in c#?
What does protected internal access modifier mean?
Why do we use parameters in c#?
HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only
what are some characteristics of an array?
What is cookies in c# asp net?
Why do we need escape characters?
Can we have 2 main methods in c#?