+ 1

Why we don't use pointers in Java?

we use pointers in c and c++ why not java

27th Oct 2018, 6:56 PM
Mohamed Abdalnasser
Mohamed Abdalnasser - avatar
2 Answers
+ 2
In languages with pointers, they are one of the most difficult bugs to track down. All classes in languages without pointers are hidden pointers making it difficult to screw up yet still provide them to the programmer.
30th Oct 2018, 2:47 AM
John Wells
John Wells - avatar
+ 1
Java has references and interfaces (which are implemented as pointers) and you're supposed to do anything trough them.
27th Oct 2018, 7:15 PM
Vlad Serbu
Vlad Serbu - avatar