0

Array, arraylist, list? @.@

Can someone explain what the difference is between an array, arraylist and a list? I can't seemto figure it out.

20th Mar 2017, 9:30 AM
Nox
Nox - avatar
2 Respuestas
+ 3
hello :) arrays have fixed size but arraylists have dynamic size. also arrays can be created of both reference types (Integer, Double, ...) and primitive types (int, double, ...) but arraylist can not be of primitive type and you can only create and arraylist from reference types. list is an interface which arraylist implements. you can not create a list directly since it is an interface
20th Mar 2017, 9:53 AM
Amin Mousavi
Amin Mousavi - avatar
0
Aw, ok. Now I get it. Thank you very much :3
20th Mar 2017, 9:55 AM
Nox
Nox - avatar