SyntaxFix
Write A Post
Hire A Developer
Questions
List is interface and ArrayList is implemented concrete class. It is always recommended to use.
List<String> arrayList = new ArrayList<String>();
Because here list reference is flexible. It can also hold LinkedList or Vector object.
LinkedList or Vector