Syllabus

  1. 01Hello, JavaWrite and run your first Java programs. Meet classes and the main method, print text and numbers, write comments, and see how source code becomes bytecode that the JVM runs.6 lessons
    1. 01Welcome to Java
    2. 02The Shape of a Java Program
    3. 03Printing Output
    4. 04Comments
    5. 05Compiling and Running
    6. 06Quiz: Hello, Java
  2. 02Variables and TypesStore information in named, typed variables. Learn int, double, long, boolean, char and String, Java's naming rules, and how final turns a variable into a constant.6 lessons
    1. 01Declaring Variables
    2. 02Whole Numbers and Decimals
    3. 03Booleans and Characters
    4. 04Strings
    5. 05Static Typing and Constants
    6. 06Quiz: Variables and Types
  3. 03Operators and ExpressionsCalculate with arithmetic operators, update variables in place, control the order of operations, convert between types with casts, and compare values to get booleans.5 lessons
    1. 01Arithmetic Operators
    2. 02Updating Variables
    3. 03Order of Operations and Casting
    4. 04Comparing Values
    5. 05Quiz: Operators and Expressions
  4. 04Classes and ObjectsModel things from the real world as classes. Give objects state with fields, set them up with constructors, give them behavior with methods, and make them print nicely with toString.7 lessons
    1. 01Classes and Instances
    2. 02Constructors
    3. 03Many Objects, One Class
    4. 04Instance Methods
    5. 05Parameters and Return Values
    6. 06Printing Objects with toString
    7. 07Quiz: Classes and Objects
  5. 05Conditionals and LogicLet programs make decisions. Use if, else if and else, choose between many cases with switch, combine conditions with logical operators, and write compact choices with the ternary operator.6 lessons
    1. 01If Statements
    2. 02Else and Else If
    3. 03Switch
    4. 04Logical Operators
    5. 05Nested Decisions and the Ternary Operator
    6. 06Quiz: Conditionals and Logic
  6. 06Arrays and ArrayListsKeep many values under one name. Create and index arrays, use the Arrays helper class, then switch to ArrayList when a collection needs to grow and shrink.6 lessons
    1. 01Arrays
    2. 02Creating Empty Arrays and Changing Elements
    3. 03The Arrays Helper Class
    4. 04ArrayList Basics
    5. 05Changing ArrayLists
    6. 06Quiz: Arrays and ArrayLists
  7. 07LoopsRepeat work without repeating code. Write while and for loops, walk through arrays and lists with for-each, steer loops with break and continue, and use the classic counting, summing and filtering patterns.6 lessons
    1. 01While Loops
    2. 02For Loops
    3. 03Looping Through Arrays and Lists
    4. 04Break and Continue
    5. 05Loop Patterns with Lists
    6. 06Quiz: Loops
  8. 08String MethodsWork with text using the String class. Measure and index strings, find and cut out pieces, compare them correctly, transform them, and format numbers into tidy output.6 lessons
    1. 01Length and Characters
    2. 02Finding and Extracting Text
    3. 03Comparing Strings
    4. 04Transforming Strings
    5. 05Formatting and Building Strings
    6. 06Quiz: String Methods
  9. 09Access, Encapsulation and StaticProtect an object's data with private fields and well-designed getters and setters, understand scope and this, and learn when state and behavior belong to the class itself with static.6 lessons
    1. 01Public and Private
    2. 02Getters and Setters
    3. 03Scope and this
    4. 04Static Variables
    5. 05Static Methods and the Math Class
    6. 06Quiz: Encapsulation and Static
  10. 10Inheritance and PolymorphismBuild families of related classes. Extend a superclass, call its constructor with super, override methods, control access with protected and final, and treat many kinds of objects through one shared type.6 lessons
    1. 01Inheritance with extends
    2. 02Overriding Methods
    3. 03Protected and Final
    4. 04Polymorphism
    5. 05Mixed Objects in Arrays and Lists
    6. 06Quiz: Inheritance and Polymorphism
  11. 11DebuggingFind and fix the three kinds of bugs: compile-time errors the compiler reports, runtime exceptions with their stack traces, and logic errors that quietly produce wrong answers. Handle expected problems with try and catch.5 lessons
    1. 01Reading Compile-Time Errors
    2. 02Runtime Exceptions and Stack Traces
    3. 03Handling Exceptions with try and catch
    4. 04Logic Errors and Debugging Techniques
    5. 05Quiz: Debugging
  12. 12Two-Dimensional ArraysOrganize data in rows and columns. Create 2D arrays, read and change individual cells, traverse them row by row or column by column, and handle rows of different lengths.5 lessons
    1. 01Creating 2D Arrays
    2. 02Reading and Changing Cells
    3. 03Traversing 2D Arrays
    4. 04For-Each Loops and Jagged Arrays
    5. 05Quiz: Two-Dimensional Arrays