Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Why there are no pointers in Java?

Pragya Keshap answered on February 4, 2023 Popularity 5/10 Helpfulness 2/10

Contents


More Related Answers

  • ARE THERE POINTER IN JAVA
  • pointers in java
  • java pointer
  • If there are no pointers in Java, then why do we get NullPointerException?

  • Why there are no pointers in Java?

    0

    In Java there are references instead of pointers. 

    These references point to objects in memory. 

    But there is no direct access to these memory locations. 

    JVM is free to move the objects within VM memory.

    The absence of pointers helps Java in managing memory and garbage collection effectively.

     Also it provides developers with convenience of not getting worried about memory allocation and deallocation

    https://www.geeksforgeeks.org/is-there-any-concept-of-pointers-in-java/

    Popularity 5/10 Helpfulness 2/10 Language java
    Source: Grepper
    Tags: java pointers
    Link to this answer
    Share Copy Link
    Contributed on Feb 04 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.