Answers for "pointer java"

19

ARE THERE POINTER IN JAVA

Java does not have pointers.
Posted by: Guest on May-12-2020
6

pointers in java

Java doesn't support pointers explicitly.
But java uses pointer implicitly:-
  Java uses pointers for manipulations of references
  but these pointers are not available for outside use.

A pointer is only used as an address of a memory location.
The java variales of oject type store the reference of the oject.

Basically the programmer can't write the pointer program in java.
Posted by: Guest on November-16-2020
1

java pointer

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.
Posted by: Guest on March-07-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language