Skip to content

Free · Java 21 (LTS)

Java Programming

Learn Java the way industry uses it: object-oriented design, collections, generics, exceptions, streams, threads and JDBC.

39
Tutorials
25
Projects
225
Practice MCQs
10 h
Reading time

What you will learn

  • Understand the JDK, JRE and JVM and run Java programs
  • Write classes using encapsulation, inheritance, polymorphism and interfaces
  • Handle errors with exceptions
  • Use the Collections Framework and generics
  • Write concurrent code with threads and synchronisation
  • Process data with lambdas and the Streams API, and connect to databases with JDBC

Syllabus

10 modules · 39 topics

  1. What Java is, how the JDK, JRE and JVM fit together, and how to write, compile and run your first program.

  2. Variables and the eight primitive types, operators, type conversion, reading input with Scanner, and working with String.

  3. Making decisions with if and switch (including Java 14 switch expressions), repeating work with loops, and storing sequences of values in arrays.

  4. Defining and calling methods, parameters and return values, Java's pass-by-value rule, overloading, variable-length arguments and recursion.

  5. Designing your own types: classes, objects and references, constructors, the this keyword, static members, and encapsulation with access modifiers.

  6. Reusing and specialising classes with extends and super, overriding and dynamic dispatch, abstract classes, interfaces with default methods, and sealed hierarchies.

  7. Wrapper classes and autoboxing, building text efficiently with StringBuilder, the methods every class inherits from Object (equals, hashCode, toString), enums and records.

  8. Handling errors with try, catch and finally, checked versus unchecked exceptions, try-with-resources, writing your own exception classes, and reading and writing files with java.nio.file.

  9. The Java Collections Framework — List, Set, Map, Queue and Deque — iterators, sorting with Comparable and Comparator, and writing your own generic classes and methods.

  10. Functional-style Java with lambdas, method references and the Streams API; running work in parallel with threads and executors; protecting shared data; and talking to databases with JDBC.