What is the difference between primitive and reference type in Java?

Variables in Java are classified into primitive and reference variables. From the programmer’s perspective, a primitive variable’s information is stored as the value of that variable, whereas a reference variable holds a reference to information related to that variable .

Sizin İçin Seçtik  How can we use primitive data types as objects in Java?

Leave a Reply

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