Pointers in Java

前端 未结 9 2025
梦毁少年i
梦毁少年i 2020-12-05 16:28

C++ supports pointers whereas Java does not. But when many programmers questioned how you can work without pointers, the promoters began saying \"Restricted pointers.” So we

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 17:10

    Java actually does have pointer math. It comes with sun.misc.Unsafe. However, you have to manage the memory yourself - be careful.

提交回复
热议问题