What is garbage collection in Java, and how can it be used ?
Answer Posted / syed sikandar bakht
when an object in memory is no longer refered by a variable,
the garbage collector automatically move it to garbage
collection.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object.
| Is This Answer Correct ? | 20 Yes | 6 No |
Post New Answer View All Answers
What is lexicographically smallest string?
What is multithreading in java?
How do you reverse a string in java?
what type of questions asked for barclays technologies pune please send urgent
What is a newline character in java?
How can you read an integer value from the keyword when the application is runtime in java? example?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What is the numeric promotion?
When is update method called?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
what is anonymous class in java?
Which sorting algorithm is best in java?
What is purpose of keyword void?
Define an abstract class with reference to java.
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.