1.

difference between C and Java on pointers

Answer»

(1)Both of these have pointers but JAVA pointers are not same as c pointers.
(2)Pointers in Java are not EXPLICIT like in C language.
(3)JVM internally uses pointers and these pointers cannot be directly manipulated.
(4)A pointer is a variable that holds the memory address of data. In Java there are only references which do not hold any memory address but
which are INDICES in a table and this table has then the real pointer to
the data.
(5)Pointer ARITHMETIC is not possible with Java pointers.



Discussion

No Comment Found