Why can’t primitive data types be “null” in Java?
A primitive type is just data. What we call objects, on the other hand, are just pointers to where the data is stored. For example: Integer object = new Integer(3); int number = 3; In this case, object is just a pointer to an Integer object whose value happens to be 3. That is, at … Read more