← Courses

LANG JAVA · 3 credits

Course Outline

Java: Beginner to Advanced

Java from zero syntax to advanced object-oriented design. You already know Python basics. Here you learn the language of large systems: static types, classes, inheritance, interfaces, collections, generics, exceptions, and modern streams, ending with interview-ready coding drills.

What you will learn

  • Read and write Java confidently: classes, methods, static types, and the compile-run model
  • Design object-oriented programs with encapsulation, inheritance, polymorphism, and interfaces
  • Use ArrayList, HashMap, and HashSet with generics, and handle errors with exceptions
  • Write modern functional-style Java with lambdas and streams (map, filter, collect)
  • Solve interview-style array and string problems in Java with big-O reasoning, StringBuilder, frequency maps, and two pointers

Course outline

Unit 1Hello Java

  • 1-1Your first Java program4 checks · 6 min
  • 1-2Compile first, run second3 checks · 7 min
  • 1-3Printing, comments, and escapes4 checks · 7 min

Unit 2Variables and types

  • 2-1Primitive types4 checks · 7 min
  • 2-2Strings and objects3 checks · 6 min
  • 2-3Operators and casting4 checks · 7 min

Unit 3Control flow

  • 3-1if, else, and boolean logic4 checks · 6 min
  • 3-2switch3 checks · 5 min
  • 3-3Loops and arrays4 checks · 8 min

Unit 4Methods

  • 4-1Defining methods4 checks · 6 min
  • 4-2Overloading, and what static means3 checks · 10 min
  • 4-3Scope and pass-by-value3 checks · 7 min

Unit 5OOP I: classes and objects

  • 5-1Your first class4 checks · 7 min
  • 5-2Constructors and this3 checks · 6 min
  • 5-3Encapsulation: private, getters, toString3 checks · 6 min

Unit 6OOP II: inheritance and polymorphism

  • 6-1extends and super3 checks · 10 min
  • 6-2Overriding and polymorphism4 checks · 7 min
  • 6-3Abstract classes and interfaces3 checks · 12 min

Unit 7Collections

  • 7-1ArrayList3 checks · 6 min
  • 7-2HashMap4 checks · 7 min
  • 7-3HashSet, equals, and hashCode3 checks · 11 min

Unit 8Generics and exceptions

  • 8-1Writing generic code4 checks · 6 min
  • 8-2Exceptions3 checks · 6 min

Unit 9Lambdas and streams

  • 9-1Lambdas3 checks · 11 min
  • 9-2Streams: filter, map, collect4 checks · 7 min

Unit 10DSA-ready Java

  • 10-0Big-O: how engineers talk about speed3 checks · 7 min
  • 10-1StringBuilder and string drills3 checks · 11 min
  • 10-2Frequency maps and two pointers2 checks · 6 min
  • 10-3Capstone: stdin, FizzBuzz, and beyond3 checks · 12 min

Practice while you learn

Use Hack University's public online code editor when you want to run code online before committing to the full curriculum. The browser compilers are free for quick syntax checks, exercises, and interview practice in an isolated sandbox environment.