AP®︎ Computer Science A Unit 1: Notes & Study Guide
Prepare for your quiz, test, or the AP exam with a comprehensive review on Unit 1 of AP Computer Science A – Using Objects and Methods.
Unit 1: Using Objects and Methods
This unit introduces the fundamentals of Java programming, including primitive data types, expressions, variables, objects, and methods used to represent and manipulate data.
Begin with Topic 1.1: Introduction to Algorithm...To review Unit 1, go through each of the 15 topics below.
Everything you actually need to know for your Unit 1 test, pulled directly from the AP® Computer Science A curriculum.
Introduction to Algorithms, Programming, and Compilers
Introduction to Algorithms, Programming, and Compilers
- What an Algorithm Is
- From Java Code to Execution
- Types of Programming Errors
Variables and Data Types
Variables and Data Types
- What Data Types and Variables Are
- Primitive vs Reference Types
- Declaring and Initializing Variables
Expressions and Output
Expressions and Output
- Generating Output with print and println
- String Literals and Escape Sequences
- Arithmetic Expressions in Java
Assignment Statements and Input
Assignment Statements and Input
- What Assignment Statements Do
- How Expressions Evaluate
- Initialization, Reassignment, and null
Casting and Range of Variables
Casting and Range of Variables
- Casting Betweenintanddouble
- Automatic Widening and Integer Division
- Rounding a double to the Nearest int
Compound Assignment Operators
Compound Assignment Operators
- What Compound Assignment Operators Do
- The Five Compound Assignment Operators
- Increment and Decrement Operators
Application Program Interface (API) and Libraries
Application Program Interface (API) and Libraries
- What an API Is and How Libraries Are Organized
- Attributes vs Behaviors in an API Class
- Reading an API Method Signature Correctly
Documentation with Comments
Documentation with Comments
- What Comments Are and Why They Matter
- The Three Types of Comments in Java
- Preconditions and Postconditions
Method Signatures
Method Signatures
- What a Method Signature Is
- Parameters vs Arguments and Call by Value
- Void vs Non-Void Methods and How to Call Them
Calling Class Methods
Calling Class Methods
- What Class Methods Are
- How to Call Static Methods
- Static vs Instance Methods
Math Class
Math Class
- What the Math Class Is and How You Use It
- The Math Methods You Must Know
- Generating Random Numbers in a Range
Objects: Instances of Classes
Objects: Instances of Classes
- What a Class Is vs What an Object Is
- Classes as Types and Object Instantiation
- Reference Variables and Memory
Object Creation and Storage (Instantiation)
Object Creation and Storage (Instantiation)
- What Constructors Are and How They Are Identified
- Object References and Variable Declarations
- Creating Objects with new
Calling Instance Methods
Calling Instance Methods
- What Instance Methods Are
- How to Call an Instance Method
- Instance vs Static Methods
String Manipulation
String Manipulation
- What a String Is
- Concatenation and Combining Strings
- String Indexing and Valid Ranges
Notes
1 credit used · 5/5 remaining