+ 1

Pointer Java

Why there is no pointer in Java ?

3rd Sep 2022, 6:52 PM
Roland
Roland - avatar
2 Answers
+ 4
They are hidden. Probably people mess up too often in C and C++. So, java uses references. Question is also, why do you want pointers?
3rd Sep 2022, 7:17 PM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 1
Must be a design choice. Handling pointers manually is a complex task. Java uses references which are nothing but pointers under the hood.
4th Sep 2022, 10:22 AM
Avinesh
Avinesh - avatar