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

Describe how to handle concurrent ajax requests?

0 Answers  


Cannot parse xml generated by jsp I am generating an xml using jsp, when I run the jsp in ie it shows the xml as per dom, but when I try to parse it using javascript , the command xmldoc.documentelement ?

0 Answers  


How do I access data from other domains to create a mashup with java?

0 Answers  


How do we get the xmlhttprequest object in ajax?

0 Answers  


What are all the features of Ajax?

1 Answers  






What are the limitations of Ajax?

2 Answers  


Will html_ajax integrate with other javascript ajax libraries such as scriptaculous?

0 Answers  


Does java have support for comet style server-side push?

0 Answers  


How to create an ajax website using visual studio?

0 Answers  


Can ajax technology work on web servers other than iis?

0 Answers  


How do I provide internationalized ajax interactions?

0 Answers  


What are the differences between ajax and javascript?

0 Answers  


Categories