What is garbage collection in Java, and how can it be used ?

Answer Posted / dsr

when ever object scope is over at that the object memory
removed.This is nown as garbageCollection.

Is This Answer Correct ?    19 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is assembly used for?

493


What is pass by value?

506


What is string pool?

620


How do you use compareto in java?

547


Does constructor creates the object ?

573






Why method overriding is used?

531


How can I debug the Java security exceptions and AccessControlExceptions?

623


How do you include a string in java?

515


What is the maximum length of a url?

502


What is quick sort in java?

546


how to create multithreaded program? Explain different ways of using thread? : Java thread

523


What do you mean by default constructor in java?

572


Can classes declared using the abstract keyword cab be instantiated?

552


What is the purpose of extern variable?

525


Which is a valid identifier?

533