-6

Creating a reference in Java is same as the concept of pointer is exactly same, then why it is said that Java does not support pointers?

1 Answers1

-1

In C you can manipulate pointers to get somewhere else than the pointer points to. In Java references are atomic and only makes sense to get to an object in memory.

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347