Multiple choice technology programming languages

Which method of VB.NET implements the same functionality of Destructor of C#

  1. Dispose

  2. Close

  3. Finalize

  4. None of the above

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

In VB.NET, the Finalize method is the destructor equivalent called by the garbage collector during object cleanup. Dispose (option A) is for deterministic resource cleanup via the IDisposable pattern. Close (option B) is typically for closing resources like files/connections but not the destructor.