Top 10 Mistakes Java Developers Make 1. Convert Array to ArrayList To convert an array to an ArrayList, developers often do this: List<String> list = Arrays.asList(arr); Arrays.asList() will return an ArrayList which is a private static class inside Arrays, it …