ITP 109x Chapter 4: Primitive Data

58 views3 pages

Document Summary

Section 4. 01 constant variables constant variable / final variable initialized variable whose value cannot be changed final prevents variable from being changed. 1. 7 x 10308 to 1. 7 x 10308 long integers expected to exceed about 2 billion. Section 4. 03 integer overflow overflow occurs when the value being assigned to a variable is greater than the maximum value the variable can store. Section 4. 04 type conversions implicit conversion compiler automatically performs several common conversions between int and double types. Section 4. 06 characters char stores a single character character literal surrounded with single quotes, e. g. "m" or "%" Ascii early standard for encoding characters as numbers. Itp 109: introduction to java programming escape sequence two-character sequence starting with \ that represents a special character. Section 4. 08 java example: salary calculation with variables (not applicable to. Section 4. 09 java example: married-couple names with variables (not applicable to notes) Section 4. 10 additional practice: grade calculation (not applicable to notes)

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