+ 1
What is reference variable?
7 Réponses
+ 2
There are two types of variables:
1- Primitive variables : those are the known variables with known data types, such as (int x , float y) and these variables contains data.
2- Reference variables : those are variables contains addresses to locations in memory , and they don't contains data.
+ 2
So, when we should use primitive or reference variable?
+ 2
Check this video if not understand on SL
https://youtu.be/eRfvgSvf-mM
+ 2
I would recommend using this site its does such a nice job at explaining pretty much anything you need to know about Java with lots of examples, i use it with SoloLearn quite often, together they make the perfect teacher you need lel
https://kodejava.org/what-is-reference-variable-in-java/
+ 1
https://www.sololearn.com/learn/Java/2158/
+ 1
Oke, thanks for your nice answer
+ 1
Ooh thank you Kalley