computer






 

Question by  Wolf (14)

How do you use pointers in Java?

 
+7

Answer by  trigonometry (668)

You cannot expressively use pointers in Java. Effectively, each variable for non-primitive data types (so arrays and object) represents a pointer.

 
+7

Answer by  DrHarris (508)

Java does not use pointers the way C++ or C does. Each Class instance is internally represented by a pointer to a memory location, but there is nothing special you need to do in order to access it. Simply name the class and variable name, and use it. No pointers.

 
+3

Answer by  ralphralpho (79)

Java does not support pointers. The references created allows us to access any memory location as pointers do in c n c++.

 
You have 50 words left!