Same thing like C++ pointer in Java

Java’s pointers (so called by the language specification, while I believe Java programmers mostly know them as “references”) do not support pointer arithmetic.

And Java has no way to do pointer arithmetic.

If you want to do such low-level stuff in Java, one way is to use JNI (the Java Native Interface) to access code written in C or C++.

Browse More Popular Posts

Leave a Comment