There are two types of variables in Java, primitive and reference type. … The main difference between primitive and reference type is that primitive type always has a value, it can never be null but reference type can be null , which denotes the absence of value.8 Eyl 2021