Unit 1
Review

Read carefully, trace precisely, and connect the ideas from numbers to strings.

Output and Escapes

Read the line carefully and decide what really appears on the screen.

OutputReview.java
java
Question 1 of 4

Numeric Rules

Focus on integer division, double division, and the final stored value.

NumericRules.java
java
Question 1 of 6

Cast Placement

The cast looks small, but its position can change the whole answer.

CastPlacement.java
java
Question 1 of 4

Overflow and Increment

Track each step instead of trusting your first instinct.

OverflowAndIncrement.java
java
Question 1 of 4

Read the Signature

Name, parameter count, parameter types, and return type should all be visible to you.

SignatureReview.java
java
Question 1 of 4

Check the Call

Decide whether main compiles. If not, say the one thing that must change.

CallCheck.java
java
Question 1 of 4

Math in Expressions

Now let one Math call join a small arithmetic expression.

MathExpressions.java
java
Question 1 of 4

Math Formulas

Now combine several Math tools inside one expression.

MathFormulas.java
java
Question 1 of 3

Random Ranges

Focus on range size, offset, and whether the cast happens at the right time.

RandomRanges.java
java
Question 1 of 4

String Indexes

Read indexes carefully before you trust the substring result.

StringIndexes.java
java
Question 1 of 4

Values and References

Watch what gets copied, what gets reassigned, and what still prints the old text.

ValuesAndReferences.java
java
Question 1 of 3

String Comparisons

Stay inside String methods: equals and compareTo already tell you plenty.

StringComparisons.java
java
Question 1 of 5

String Behavior

Decide what changes, what stays, and what gets combined.

StringBehavior.java
java
Question 1 of 5

Null and Empty

One is a real string object. The other is not an object at all.

NullAndEmpty.java
java
Question 1 of 3

Integrated Numbers

These mix several Unit 1 number ideas at once, so slow down and organize your thinking.

IntegratedNumbers.java
java
Question 1 of 3

Integrated Strings

These combine substring, concatenation, escaping, and careful reading.

IntegratedStrings.java
java
Question 1 of 3

Before Unit 2

Take these foundations with you into the next unit.

Keep the Basics

Variables, expressions, methods, and strings keep showing up inside bigger programs.

Keep the Habits

Read code carefully, check types first, and decide whether a value must be saved.

Build More

Unit 2 will add decisions and control flow on top of everything you used here.
01 / 18