List
List
List
ArrayList
Vector
LinkedList
Please refer documentation and note down the important methods available in List interface
{
boolean hasNext();
E next();
void remove();
}
for(Object o : oa) {
Fruit d2 = (Fruit)o;
System.out.println(d2.name); }