Tag Archives: Top 10 mistakes java developers make

Top 10 Mistakes Java Developers Make

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 is not the java.util.ArrayList class. The java.util.Arrays.ArrayList class has set(), get(), contains() methods, but does […]