A primitive data type refers to a predefined data type that is offered by the Java programming language. On the other hand, the wrapper classes provide a simple way of using different primitive data types such as Boolean and int. It transforms a primitive type into an object.