Java has pointer like c++ ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java has pointer like c++ ?

15th Jul 2016, 7:24 PM
Mohsen Rezaei
Mohsen Rezaei - avatar
4 Answers
+ 1
No, there is no such thing like pointers in c/c++ in java. but java variables contain reference to objects.
15th Jul 2016, 8:23 PM
vetarikisa
0
you can say it is like Reference variable in java which hold address of the object
15th Jul 2016, 8:08 PM
deepanshu7211
0
no , Java doesn't have pointers, and in Java it is designed so that there is no need for pointers..☺
16th Jul 2016, 5:16 AM
Chander Mohan Pundhir
Chander Mohan Pundhir - avatar
0
Java internally supports pointers but this facility is not given to user R programming because jaga is one of the robust secured language the concept of pointers are used internally to achieve memory management inter process communication and also thread management
16th Jul 2016, 11:26 AM
Shyam Sagar
Shyam Sagar - avatar