What is join () in java?
No Answer is Posted For this Question
Be the First to Post Answer
List two java ide’s?
What is the implementation of destroy method in java. Is it native or java code?
what is business objects?
write a program that list all permutations of ABCDEF in which A appears before B?
java is puerly object oriented or not ?
What methods are used to get and set the text label displayed by a button object?
Why to use nested classes in java?
Explain differences between checked and unchecked exceptions in java?
What is a loop java?
What is the use of Getters and Setters method ?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
What is a package?