Computer Science, asked by hkwezwe, 8 months ago

what's the different between reference type and primitive type in java

Answers

Answered by yashjames72
0

Answer:

Difference between Primitive and Reference variable in 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 ...

Answered by rockgirl20
1

Explanation:

Primitive types are the basic types of data: byte , short , int , long , float , double , boolean , char . ... Reference types are any instantiable class as well as arrays: String , Scanner , Random , Die , int[] , String[] , etc. Reference variables store addresses to locations in memory for where the data is stored.

hope it's help

mark as brainliest ❤️

Similar questions