The property of the object calls removeAll(), why did it delete itself arraylist java removeall public static void main(String[] args) { Dto dto = new Dto(); List aList = new ArrayList<>(); aList.add(1L); aList.add(2L); aList.add(3L); dto.setIdList(…