What's the base class of all exception classes?
No Answer is Posted For this Question
Be the First to Post Answer
How is abstraction implemented in java ?
What is string intern in java?
Explain the difference between treeset and treemap in java?
why java does not contain pointers?
What is the meaning of 3 dots 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 the meaning of flag day?
Can an interface have a constructor?
What is ‘has a’’ relationship in java?
Can we create an object of private class?
why is multiple inheritance not allowed in java?
7 Answers Elementus Technologies, Huawei, Infosys,
What is the technique adopted to create an immutable class?