What is a pointer and does Java support pointers?

Asked 20-Dec-2017
Viewed 605 times

1 Answer


0

The Pointer is an object, whose value points to or refers to another value stored elsewhere in the computer memory using its memory address.

Or in other words, we can say that pointer is programming object which handles the reference of another variable value stored in the memory.

No, Java doesn't support Pointer, While we use the pointer in memory, improper handling of pointers leads to memory leaks and reliability issue hence java doesn't support the usage of Pointers.


Hope it's informative for you...