Actually here is a similar topic with little practical value. As far as I understand, primitives perform better and should be used everywhere except for the cases where Obje
yes, primitives are faster than objects. Since java 5 you can even mix primitives and objects without manually converting one to another. The autoboxing mechanism takes care of just that.
this means that if you put a primitive in a collection, the compiler will not complain, and convert the primitive to an object implicitly.