Showing 1 post by,

Eric Goebelbecker

Java doesn’t have pointers. So why does it have the “Null Pointer Exception?” Because Java really does have pointers: they’re “references.” References give us some of the power that pointers in C and C++ give us, such as passing large objects between modules without having to copy them, but at the same time not allowing some of the more common mistakes, such as using a pointer to an object X as a pointer to object Y. But it’s still possible to tr [...]