Q2) How does garbage collector decide which objects are to be removed? Can garbage collector be forced?
Q3) What is the difference between an argument and a parameter?
Q4) What are wrapper classes?
Q5) What is difference between Collections and Collection?
Q6) What is connection pooling and what are the advantages of connection pooling?
Q7) What is Servlet?
Q8) What exactly is “Code once and run anywhere” property of Java? How does Java achieve this behavior?
Q9) What happens when we run this code?
class Test { public static void main(String args[]) {ArrayListalist = new ArrayList (); alist.add(new String("A")); alist.add(new String("B")); alist.add(new String("C")); int i = 0; for (Iterator it = alist.iterator(); it.hasNext(); ) { System.out.println(alist.get(i++)); } } }
Q10)
No comments:
Post a Comment