What is garbage collection in Java, and how can it be used ?
Answer Posted / 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 View All Answers
What are the types of casting?
Explain the difference between static and dynamic binding in java?
What is meant by data hiding/encapsulation?
Can a class have an interface?
How to print an arraylist in java?
Can you call a method on a null object?
How do you reverse sort in java?
Write a program to print all permutations of string?
What is meant by bytecode?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
Which is better stringbuilder or stringbuffer?
When should I use singleton?
Define a java class.
What is the size of string?
What is string builder in java?