📜  java代码示例中的指针

📅  最后修改于: 2022-03-11 14:52:20.349000             🧑  作者: Mango

代码示例2
There are no pointers in Java. However, there is a Pointer class in JNA, which is very likely NOT what are you looking for.
The only way to get and use pointers is through using Unsafe. The mechanisms are implementation-dependent between JDKs and the Unsafe class may be available at sun.misc.Unsafe or at jdk.internal.misc.Unsafe.