What is garbage collection in Java, and how can it be used ?
Answer Posted / ms
garbage collecton in java means, if a particular object in
a program is not being refered since long time then it will
be automatically deleted with the help of garbage collector
so that some amount of memory is saved.we can explicitily
call it by adding a method system.gc()in the program.so in
this case there is no need to use'destructor'to destroy the
objects.
| Is This Answer Correct ? | 70 Yes | 17 No |
Post New Answer View All Answers
What is linkedlist in java?
Why javac is not recognized?
What is the difference between method overriding and overloading?
What is difference between filereader and bufferedreader?
What are the types of web technologies?
Java Compiler is stored in JDK, JRE or JVM?
Is java owned by oracle?
Why is core java important?
What is google full form?
How do you call a reference in java?
How to change value in arraylist java?
who can i handle multiple client in RMI
What do you understand by classes in java?
What is set string?
Explain spliterator in java8?