What is the difference between primitive and reference type Java?

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

Sizin İçin Seçtik  Can I use object type in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *