Noble Dhas
Why Java does not support Pointers?

Why Java does not support Pointers?

By Noble Dhas in Java on Mar 29 2020
  • Aman Gupta
    Jul, 2020 16

    It,s just because of security. By not providing pointers java effectively provides another level of abstraction.

    • 1
  • Deepak Sharma
    Sep, 2023 3

    because java is also (.) pointer is defined already to pointer use in class and object

    • 0
  • Bhagyashri Kadam
    Apr, 2021 30

    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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS