|
-
October 25th, 2006, 12:29 PM
#1
List Arraylist Question
Hi!
I've been wondering why you can define and what is the difference when you create next:
List <Car> cars=new ArrayList<Car> ;
OR
List cars=new Arraylist();
so these both works but whats the real difference and when it matters that you define
List and ArrayList with <Car> ie. <E> because you can use it without too.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|