0
What is the difference between these two collection :
ArrayList<String> ls= new ArrayList<String>() ; List<String> ls= new ArrayList<String>(); I know that List is interface but how these statement will work!
1 Réponse
0
If you use the List interface, than you are be able to change your variable from ArrayList, to LinkedList example