Why Java does not support Pointers?
Noble Dhas
Select an image from your device to upload
It,s just because of security. By not providing pointers java effectively provides another level of abstraction.
A pointer is a variable which can hold the address of another variable or object. But, Java does not support pointer due to security reason, because if you get the address of any variable you could access it anywhere from the program without any restriction even variable is private.