What's the diff b/w destructor and garbage collector?

Answers were Sorted based on User's Feedback



What's the diff b/w destructor and garbage collector?..

Answer / shreenivas

A destructor is a special member function of a class which
is called as soon as a object is deallocated & Garbage
collector is program or an application that actually
deallocates the memory of long time unreachable object

Is This Answer Correct ?    4 Yes 0 No

What's the diff b/w destructor and garbage collector?..

Answer / nadim ahmad

destructor destroy the object but garbage collector allocate
the memory for objects

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More AJAX Interview Questions

Can ajax be implemented in browsers that do not support the xmlhttprequest object?

1 Answers  


Does ajax have the same meaning as xmlhttprequest?

1 Answers  


Is ajax an api?

1 Answers  


What are the technologies used by ajax?

1 Answers  


How can you find out that an ajax request has been completed? : asp.net ajax

1 Answers  


How to control the duration of an Ajax request?

1 Answers  


Which request is better, Get or Post?

1 Answers  


What is asp.net 2.0 ajax?

1 Answers  


How to control how long an ajax request may last?

1 Answers  


What is the predominant distinction between javascript and j-query?

1 Answers  


Is it true that a xmlhttprequest objects belongs to the w3c standard?

1 Answers  


Is it true that ajax is code browser compatible?

1 Answers  


Categories