S
S
🐒Unit 1 – Primitive Types 📱Unit 2 – Using Objects ✅Unit 3 – Boolean Expressions & if Statements
● Boolean expressions evaluate to either true or false, and are used
● Create objects: Know how to create objects using the new in if statements to determine whether to execute a block of code.
keyword, initialize object fields using constructors and setters, Make sure you understand how to create boolean expressions using
and use the this keyword to refer to the current object. comparison operators (such as ==, !=, <, >, <=, and >=) and logical
● Classes and objects to solve problems: Practice creating classes operators (such as &&, ||, and !).
and objects to model real-world concepts and use them to ● If statements: if statements are used to control the flow of
● byte: a signed 8-bit integer. Its range is from -128 to 127. implement solutions to problems. execution in a program. Make sure you understand how to use if
● short: a signed 16-bit integer. Its range is from -32,768 to ● Inheritance and polymorphism: Understand how to use statements to execute different blocks of code based on different
32,767. inheritance to inherit fields and methods from a parent class, and conditions.
● int: a signed 32-bit integer. Its range is from -2,147,483,648 how to use polymorphism to allow objects to be treated as ● Else and else if statements: else and else if statements can be
to 2,147,483,647. instances of their parent class or any of their implemented used to execute different blocks of code when the condition in the if
● long: a signed 64-bit integer. Its range is from interfaces. statement is false.
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. ● Interfaces: Understand how to create interfaces and use them in ● Nest if statements: You can nest if statements inside other if
● float: a single-precision 32-bit floating point number. Its your code to define a set of methods that a class must statements to test for multiple conditions.
range is from 1.4E-45 to 3.4028235E38. implement. ● Short-circuit evaluation: When using logical operators such as &&
● double: a double-precision 64-bit floating point number. Its ● Access modifiers: Understand the different access modifiers and ||, the right-hand side of the expression may not be evaluated
range is from 4.9E-324 to 1.7976931348623157E308. (private, protected, and public) and how they control the visibility if the left-hand side determines the outcome of the expression. This
● boolean: a boolean type, which can have either a true or and accessibility of fields and methods in a class. is known as short-circuit evaluation.
false value. ● ArrayLists and other collections: Understand how to use ● Ternary operator: The ternary operator (?:) can be used as a
● char: a single 16-bit Unicode character. Its range is from ArrayLists and other collections to store and manipulate groups shorthand for if-else statements when assigning a value to a
'\u0000' (or 0) to '\uffff' (or 65,535). of objects, including methods such as add(), remove(), and size(). variable.
● Object methods: Understand how to use object methods such ● Switch statements: switch statements can be used as an
as equals(), hashCode(), and toString() to compare objects, alternative to if-else statements when testing for multiple
generate hash codes, and convert objects to strings. conditions on a single variable.
● Static methods and variables: Understand how to use static ● Boolean variables: boolean variables can be used to simplify
methods and variables to define methods and fields that are boolean expressions and make code easier to read and understand.
associated with a class rather than with objects of the class.
💯 FRQ Tips
Read the instructions carefully: Make sure to read the instructions and requirements for each question carefully. Follow the prompts and answer all parts of the
question // Manage your time: You will have 1 hour and 30 minutes to complete 4 FRQs // Use proper syntax: Make sure to use proper syntax and format your code
correctly. This includes using appropriate naming conventions, indentation, and commenting your code as needed // Show your work: Include comments in your
code to explain why you made certain decisions and how your code works // Use good programming practices: Use good programming practices such as
modularity and abstraction to break down complex problems into smaller, more manageable parts // Understand the scoring rubric: Familiarize yourself with the
scoring rubric for each question. The rubric outlines the specific requirements for each question and the points allocated for each part. Review and revise: Review
your answers and revise them as needed. Check for any errors or mistakes and make sure that your code is well-organized and readable // Don't leave anything
blank: Even if you are unsure of the answer to a question, make an attempt to answer it. Partial credit can be awarded for correct answers or reasonable attempts