O'Reilly logo
  • MESUT ARSLAN thinks this is interesting:

The actual types for generic programming must be object types, which is why we use the wrapper class Double instead of the primitive type double. (Fortunately, the automatic boxing and unboxing will work in our favor.)

From

Cover of Data Structures and Algorithms in Java, 6th Edition

Note

Generics