Tian2 田二
Library AP Computer Science A Unit 1: Using Objects and Methods
⁂   AP Computer Science A · Unit 1

1. Using Objects and Methods

15–25% of the AP exam. Key topics: Primitive data types: int, double, boolean, Variable declaration and assignment, Arithmetic operators and operator precedence, Integer division and modulo operator, Calling methods on objects using dot notation, Constructor calls with the new keyword, String methods: length(), substring(), indexOf(), equals(), compareTo(), Math class methods: Math.abs(), Math.pow(), Math.sqrt(), Math.random(), Wrapper classes: Integer and Double, Autoboxing and unboxing, System.out.print() and System.out.println().

15–25% exam weight standard track

Unit 1: Using Objects and Methods

Study guide content for this unit is being prepared. Check back soon for complete lesson notes, formula sheets, and worked examples.

Topics in this unit

  • Primitive data types: int, double, boolean
  • Variable declaration and assignment
  • Arithmetic operators and operator precedence
  • Integer division and modulo operator
  • Calling methods on objects using dot notation
  • Constructor calls with the new keyword
  • String methods: length(), substring(), indexOf(), equals(), compareTo()
  • Math class methods: Math.abs(), Math.pow(), Math.sqrt(), Math.random()
  • Wrapper classes: Integer and Double
  • Autoboxing and unboxing
  • System.out.print() and System.out.println()