First page Back Continue Last page Graphics
Java Simple Data (cont'd)
Similarity with C/C++:
- syntax for literals and expressions exactly the same except for Unicode escape sequences for chars and strings
Differences:
- Java does not have pointers (or structs, or unions)
- Java does not automatically coerce between the integral types, the boolean type, and the character type. For example, if x is an int, the following is illegal: