1.2

Variables & Data Types

AP Computer Science A

Declaring variables

Primitive data types (AP Exam)

int

double

boolean

Other types to know

Naming rules and conventions

Rules (these MUST be followed or the code won't compile)

Conventions (these SHOULD be followed for clean code)

Constants with final

Default values vs. local variables

AP Exam Tips

Common Mistakes

Key Vocabulary