How do you add an arraylist to an array in java?
No Answer is Posted For this Question
Be the First to Post Answer
static inner classes means..?
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 meant by main method?
What is an abstract class and abstract method?
What are thread groups?
What are mutable classes?
What is the main functionality of the remote reference layer?
Can a static class have a constructor java?
What are the 3 types of loops in java?
How can constructor chaining be done using this keyword?
what is Hashmap & Hashtable wirh example?
What is adapter class?