What are primitive data types in java?
All datatypes in small letters (int, byte, char…) are primitive datatypes which means that they are not objects (Integer, Byte…). Objects use more resources but offer a set of methods to manipulate them. In order to reduce the resources, primitive datatypes were introduced to Java. This step was one that made Java less object oriented. In a fully object oriented language, EVERYTHING is an object ,even variables and even if that means to produce a lot of overhead. Fortunately, each primitive Java datatype has its object representation. So you as a programmer can decide whether you want to save resources (use primitives) or go object oriented (use object wrappers).