CPSC 233 Lecture Notes - Lecture 1: Memory Management, Microsoft Dynamics Ax, Exclusive Or

23 views2 pages

Document Summary

Essenially pointers to objects created on heap memory. Form: classname objectref: eg, vector myvector, myvector = new vector(); ((read about stack and heap here in reference)) << creates a vector obj on the heap. Variables are set to zero unless explicitly iniialized. Two basic types: declaraions, executable statements (they perform some acion) Eg: double x =3. 5, import java. awt. graphics, value = 3*i, system. out. println( hello ); The expression is evaluated and the result stored in the variable. Expressions are a combinaion of operators and operands (vars, const, literals: they evaluate to some value. Division: if both are integers, result is integer, remainder truncated, if one or more operands are loaing point. General form: var op = expression: is equivalent to var = var op expression; X++ or ++x is the same as x= x+1. X or x is the same as x = x -1. Pre increment operaion is done before other operaions in the expression: x=10, y=++x.

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