Multiple choice technology programming languages

How do you Dereference an Object in VB.NET ?

  1. By setting the object to Null

  2. With Close keyword

  3. By setting the object to Nothing

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

VB.NET uses the Nothing keyword to release object references and allow garbage collection, which is equivalent to null in C#. The Null keyword does not exist in VB.NET, and Close is a method used for releasing resources, not dereferencing.