What are reference variables in java?
No Answer is Posted For this Question
Be the First to Post Answer
Explain the reason behind ending a program with a system.exit(0)?
What is methods in java?
What is bubble sort in java?
What is a text string?
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 does || mean in vectors?
heavy components means what?
What is meant by throwing an Exception?
What are synchronized blocks in java?
What is a default method?
How can we break singleton in java?
How do you sort a string in alphabetical order in java?