In array list we can save only objects by using the method add(Object).if we can we save primitive data types in array list ,then wrap the primitive value to its corresponding Wrapper class then add that object to the array list.after retrieving the data again we can make the wrapper class into a primitive value.