what are pointers in java code example

Example 1: ARE THERE POINTER IN JAVA

Java does not have pointers.

Example 2: 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.

Tags:

Java Example