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

What javascript libraries and frameworks are available for ajax support?

0 Answers  


What is the difference between a destructor and a garbage collector?

0 Answers  


What are the benefits of ajax?

0 Answers  


Why do we use the xmlhttprequest object in ajax? : asp.net ajax

0 Answers  


What about applets and plugins?

0 Answers  






What are all the features of Ajax?

1 Answers  


Is json is a programming language?

0 Answers  


How do we abort the current xmlhttprequest in ajax?

0 Answers  


What are different readystate in ajax?

0 Answers  


Why did ajax kill himself?

0 Answers  


Should I consider ajax?

0 Answers  


Does ajax have the same meaning as xmlhttprequest?

0 Answers  


Categories