What is a control variable example?
No Answer is Posted For this Question
Be the First to Post Answer
Can a Byte object be cast to a double value?
What about abstract classes in java?
Is alive method in java?
What is a jit compiler?
Is treeset sorted in java?
What is a vector in java?
Differentiate between static and non-static methods in java.
Define Compiling?
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 volatile modifier for? : Java thread
Why scanner is used in java?
What is the purpose of a statement block?