CPSC 259 Chapter Notes - Chapter 7.4: Operand

63 views2 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents