What is byte value?
No Answer is Posted For this Question
Be the First to Post Answer
Convert a binary search tree to a sorted doubly linked list inplace.
What is a jit compiler?
Why can't we use static class instead of singleton?
How is the marker interface used in Java?
When should you use arraylist and when should you use linkedlist?
Can you call a method in a method?
What is widening and narrowing in java? Discuss with an example.
What is the difference between super class & sub class?
What is the multi-catch block in java?
In Java list the methods that can be overridden?
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?
Is linkedlist thread safe in java?