CPSC 259 Chapter Notes - Chapter 7.4: Operand
Document Summary
Java pointer coding and the idea behind pointers. In java, the operands * and & are not used for indicating pointers. If you have more complicated types like arrays or objects, then pointers are automatically used for them. This approach leads to fewer bugs, as the main error that can occur when coding in pointers, that is when a pointee is not assigned to a pointer is eliminated. Also, if you defer a null pointer, then that would be a real time error, but in java owing to real time processing, this error is avoided as they occur. However this also means that java runs slower, since the additional resources required for checking the consistency of pointers, take more time. However, the increased time of the program can be compensated by the increased efficiency and speed of the programmer. In a computers memory, every area has a specific address like 12212.