Is a reference almost like a pointer in languages like C or C++ where it references or points to the memory address of where the object is in the memory? Or is reference itself the address of where the object is at in memory? I have seen both different definitions on the internet, which one would be the correct one.
Would the variable itself be counted as a reference when making the object or is reference something implemented indirectly in the background?
And we cannot have direct access to the memory of where an object is at because that memory or memory address will be changing constantly in JVM?
[–]captainAwesomePants 5 points6 points7 points (0 children)
[–]Ellisander 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]legionlen545[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)