Which is easier netbeans or eclipse?
No Answer is Posted For this Question
Be the First to Post Answer
What is boolean strategy?
Can list have duplicates in java?
What is hotjava?
What is the main functionality of Prepared Statement?
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?
Do I need java for windows 10?
How do you start a thread?
What is public static?
Is java platform independent?
What is foreach loop in java?
Program to output as below formate: 1 2 3 4 5 6 7 8 9 10
What are the advantages and disadvantages of reference counting in garbage collection?