Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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.
 
PREVIOUS NEXT
Tagged: #pointers #java
ADD COMMENT
Topic
Name
5+6 =