Where the implementation of interface methods in Java's Collection Framework take place?


  1. 1) Vector v = new Vector();  
  2.     v.addElement("A");  
  3.     ........  
  4.     ........  
  5.     Iterator iter = v.iterator();
  6.        
  7. 2) In the declaration:  
  8.     List list = new ArrayList();
  9.        
  10. List list = new ArrayList();
  11.        
  12. ArrayList list = new ArrayList();


Learn More :