Register now or log in to join your professional community.
Pointers are used in Java implementation for references (Oracle JDK is implemented in C++) who develop/implement the language. It is just that pointers are not accessible to developers who use it. So a reference in java is a pointer..
There is a concept of pointers in java. Pointers in Java are known as references . Except int, float, double etc all other non primitive types are reference. They are pointer to a object in heap. Every variable is address of memory location that holds data. when address is zero, it is null pointer and throws null pointer exception
Java support pointers but with different name called reference .
Note that when we use (.) actually meaning -> in other programing languages .