Is array primitive data type in java?
No Answer is Posted For this Question
Be the First to Post Answer
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?
Can we pass null as argument in java?
Why destructor is not used in java?
solve (x-1)(x-9)=8;
3 Answers IBM, Manhattan, TCS,
Is main a keyword in java?
Can a class with private constructor be extended?
How to prevent a field from serialization ?
What does || || mean in math?
What are Access Specifiers and Access Modifiers.
Why does java not support pointers?
What is the reason that multiple inheritance is not possible in java??
how is final different from finally and finalize in java?