Identify the Autoboxing and the Unboxing in the following example:

List<Long> list = new ArrayList<>();
list.add(1L);
long l = list.get(0);
1 answers

list.add(1L) causes autoboxing

Long l = list.get(0) causes unboxing

shilpigupta22 shilpigupta22 [Author] 4 months ago votes 0