A public class named Message has a method named SendMessage. The SendMessage() method is leaking memory.

A public class named Message has a method named SendMessage. The SendMessage() method is leaking memory.

A. Add a finally statement and implement the gc.collect() method.
B. Modify the Message class to use the IDisposable interface.
C. Remove the try"¦catch block and allow the errors to propagate.
D. Replace the try"¦catch block with a using statement.

microsoft-exams

4 thoughts on “A public class named Message has a method named SendMessage. The SendMessage() method is leaking memory.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.