in java 5 this is a new feature which is called as generics. previously u can put any type of object in an arraylist.but now in java 5/jdk1.5 u can specify the type of object u r going to insert in the arraylist......e.g
ArrayList<fish> obj1=new ArrayList<fish>();
here u can add only those opbject whose type is fish not cat or dog etc.