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

Answers were Sorted based on User's Feedback



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

Answer / dhawal

garbage collection is process run thruogh out the java
programe ,when we class creation takes place after that we
have to instantiate that class ,if we can not gives refrence
to this object then that will be find out by garbage
collector and that will collect by garbage collector.

Is This Answer Correct ?    11 Yes 16 No

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

Answer / subramanyam

IF an object is created for an class that object is not
used than the memory which is allocated to that objected to
be wasted ,the wastage of memory is called garbage
collection

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More Core Java Interview Questions

What is the new line character?

1 Answers  


Need 2+ yrs experienced java techinical question papaer for company Iflex

1 Answers   TCS,


Explain the difference between serializable and externalizable in java?

1 Answers  


How do you change an int to a string?

1 Answers  


What is CardLayout?

1 Answers   Infosys,


Can we override private methods?

1 Answers  


Does sprintf add a null terminator?

1 Answers  


List the three steps for creating an object for a class?

1 Answers  


Does importing a package imports its sub-packages as well in java?

1 Answers  


Can we clone singleton object?

1 Answers  


what is the need to set path in java? how many ways to set path in java? Explain breif?

5 Answers  


What is meant by throwing an Exception?

4 Answers   Accenture,


Categories