Which is best way to initialize the ArrayList If I know the size of element in advance.
A)
List<Map<String, Object>> docList = new ArrayList<Map<String, Object>>(size);
OR
B)
List<Map<String, Object>> docList = new ArrayList<Map<String, Object>>();
What is the performance effect if I am using A or B.