AP · Self-study

Master AP Computer Science A, one concept at a time

Learn Java from your first variable all the way to 2D arrays and recursion. One idea per lesson, code that runs right in your browser, and FRQs graded with test cases and a rubric.

4units
33lessons
4Progress Checks
4 typesof official FRQ

What you'll be able to do

  • Read Java code and predict its output, just like in the MCQ section
  • Write methods with loops and conditions that do exactly what the question asks
  • Design a complete class: fields, constructors and methods
  • Work with data using arrays, ArrayList and 2D arrays
  • Explain searching, sorting and recursion in your own words
  • Write clean, complete FRQ answers without losing points to small slips
Taking this course in a class with a teacher? Join with the class code your teacher sent you to unlock this subject — no plan needed.

Syllabus

Follows the exam's new 4-unit framework. Each lesson also shows its official topic name so you get used to the exam's wording.

1Using objects and methodsUnit 1 · Using Objects and Methods · 8 lessons
  • 1.1Algorithms and your first Java programIntroduction to Algorithms, Programming, and Compilers
  • 1.2Variables and primitive data typesVariables and Data Types
  • 1.3Expressions and assignmentExpressions and Output
  • 1.4Compound assignment and castingAssignment Statements and Input / Casting
  • 1.5Calling methods and parametersCalling Methods
  • 1.6The Math class and random numbersUsing the Math Class
  • 1.7String objects and their methodsString Objects and Methods
  • 1.8API documentation and commentsDocumentation with Comments
  • U1-PCProgress Check — Unit 1MCQ + FRQ graded with a rubric, with model answers
2Branching and loopsUnit 2 · Selection and Iteration · 8 lessons
  • 2.1Boolean expressionsBoolean Expressions
  • 2.2if and if-else statementsif Statements
  • 2.3Nested conditions and logical operatorsNested and Compound Conditions
  • 2.4while loopswhile Loops
  • 2.5for loopsfor Loops
  • 2.6Algorithms on stringsDeveloping Algorithms Using Strings
  • 2.7Nested loopsNested Iteration
  • 2.8Counting how many steps a loop runsInformal Run-Time Analysis
  • U2-PCProgress Check — Unit 2MCQ + FRQ graded with a rubric, with model answers
3Designing classesUnit 3 · Class Creation · 7 lessons
  • 3.1Abstraction and program designAbstraction and Program Design
  • 3.2Fields and encapsulationInstance Variables and Encapsulation
  • 3.3ConstructorsConstructors
  • 3.4Writing methodsWriting Methods
  • 3.5Static variables and methodsClass Variables and Methods
  • 3.6Variable scope and the this keywordScope, Access, and this
  • 3.7Ethics and the impact of computingImpact of Computing
  • U3-PCProgress Check — Unit 3MCQ + FRQ graded with a rubric, with model answers
4Data collectionsUnit 4 · Data Collections · 10 lessons
  • 4.1One-dimensional arraysArray Creation and Access
  • 4.2Traversing arraysTraversing Arrays
  • 4.3Standard array algorithmsDeveloping Algorithms Using Arrays
  • 4.4ArrayListArrayList Methods
  • 4.5Traversing and modifying an ArrayListTraversing ArrayLists
  • 4.6Two-dimensional arrays2D Array Creation and Traversal
  • 4.7Linear and binary searchSearching Algorithms
  • 4.8Selection, insertion and merge sortSorting Algorithms
  • 4.9RecursionRecursion
  • 4.10Reading data from filesText Files and Data Sets
  • U4-PCProgress Check — Unit 4MCQ + FRQ graded with a rubric, with model answers

Practise FRQs like the real exam

In practice mode, press Run tests to see how many test cases your code passes. In exam mode, the editor turns off syntax highlighting and hints — exactly like exam day.

// FRQ 4 · 2D Array — count cells greater than their row's average public static int countAboveRowAvg(int[][] grid) { int count = 0; for (int[] row : grid) { double sum = 0; for (int v : row) sum += v; double avg = sum / row.length; for (int v : row) if (v > avg) count++; } return count; } // ✓ 6/6 test cases passed · rubric: 5/6 — missing an empty-row check

Timed practice exams

42 MCQs in 90 minutes and 4 FRQs in 90 minutes, with a question navigator, flagging and answer elimination.

Ask Bit mid-lesson

Stuck on nested loops? Bit walks you through it step by step with questions instead of handing you finished code.

Questions about this course

Can I take it if I've never coded before?

Yes. Unit 1 starts from the ideas of algorithms and variables. A diagnostic test tells you whether to take Unit 1 slowly or move quickly on to Unit 2.

Do I need to install Java on my computer?

No. Every coding exercise runs in your browser, on Bytewise's isolated servers.

Are the questions real College Board exam questions?

No. Every question is written by the Bytewise team to match the exam's format and difficulty, so you can practise without breaching copyright.