Has java pointers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Has java pointers?

13th Dec 2017, 2:42 PM
Yash Chaudhary
Yash Chaudhary - avatar
2 Answers
+ 4
Java does use pointers internally, but keeps it hidden. Object o1, o2; o2 = new Object(); o1 = o2; both o1 and o2 point to the same class data. If you change either, both see it.
13th Dec 2017, 2:53 PM
John Wells
John Wells - avatar
+ 1
i think java uses pointers internally.
13th Dec 2017, 2:45 PM
shobhit
shobhit - avatar