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

Why are inner classes required?

3 Answers   Oracle,


How do you print array in java?

0 Answers  


What is the difference between state-based unit testing and interaction-based unit testing?

0 Answers  


What is sortedset in java?

0 Answers  


Can multiple catch statements be used in exceptions ?

6 Answers   Wipro,






What does nextint () do in java?

0 Answers  


relation between list and linked list

1 Answers   Infosys,


How do you call a reference in java?

0 Answers  


what is the JNDI?

3 Answers  


What is functional interface in javatpoint?

0 Answers  


Any one can explain how the inerface uses in java. give with example.

1 Answers   IBM,


What is private protected in java?

0 Answers  


Categories