Autoboxing has nothing to do with generics. Autoboxing is achieved by the insertion of method calls and casts by the compiler, into the code. These calls and casts are handled at runtime, of course.
boxing and unboxing is a courtesy of the compiler,not virtual machine.the compiler inserts the necessary calls when it generates the byte codes of class.
reference : Java Core Volume 2
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
a bit of art, as a gift, the permaculture playing cards