Is class is a data type?
No Answer is Posted For this Question
Be the First to Post Answer
Can we override protected method in java?
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 jvm? How its run?
what is the difference between sleep() and Wait()?
What is integer parseint?
How to sort array of 0 and 1 in java?
What are register variables what are the advantages?
What are "methods" and "fields"?
What is close method? How it's different from Finalize & Dispose?
0 Answers InfoAxon Technologies,
When finalize method is called?
How can constructor chaining be done using this keyword?
What do you mean by aggregation?