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 a null point?

0 Answers  


How do you convert bytes to character in java?

0 Answers  


What is preflight request?

0 Answers  


Is there any tag in htm to upload and download files?

0 Answers  


what us Dyna action form?

4 Answers   Aithent Technologies,






What is the use of static keyword in "public static void main()"

10 Answers   College School Exams Tests, Infosys, Six Dee Telecom,


What are Advatages of Overloading and Overridding.

8 Answers   TCS, Wipro,


When do I need to use reflection feature in java?

0 Answers  


1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))

1 Answers  


Write the algorithm to check the number non-leaf nodes in a tree.

0 Answers   Amdocs,


How do I start learning java?

0 Answers  


How to send a request to garbage collector?

4 Answers  


Categories