| Slide 2 of 57 | Lecture 2: Using Objects | |
Types and Variables
- Every value has a type
- Variable declaration examples:
String greeting = "Hello, World!";
PrintStream printer = System.out;
int luckyNumber = 13;
- Variables
- Store values
- Can be used in place of the objects they store