00:00
Free Core Java Course

Core Java Tutorial

Last updated:

Learn Java step by step, from your first program to collections, multithreading, the Stream API and file handling. Every lesson has clear explanations, runnable examples with real output, and interview-style FAQs, for beginners and experienced developers alike.

What You Will Learn

  • How Java works: the JDK, JRE, JVM, bytecode and the JIT compiler
  • Core syntax: data types, variables, operators, control flow and arrays
  • Object-oriented programming: classes, inheritance, polymorphism, abstraction and interfaces
  • Robust code with exception handling and try-with-resources
  • Working with text using String, StringBuilder and related classes
  • The Collections Framework: lists, sets, maps and when to use each
  • Concurrency with threads, synchronization and thread pools
  • Modern Java features: lambdas, records, switch expressions, pattern matching and virtual threads
  • Functional-style data processing with the Stream API and Collectors
  • File handling with I/O streams, buffered readers and writers, and NIO
  • Running tasks on thread pools with the Executor Framework and CompletableFuture
  • Problem solving through 326 practice programs and interview-style FAQs

Java Learning Path

Follow the 26 tracks in order, or open any section to jump straight to the topic you need. Each tutorial includes runnable examples with their output and frequently asked questions.

Part 1 Core Java

01OverviewWhat Java is, how it runs, setting up the JDK, and how it compares with other languages.9 lessons
02BasicsClasses, objects, data types, variables, methods and your first Java program.8 lessons
03OperatorsArithmetic, relational, logical, bitwise, assignment, unary and ternary operators.8 lessons
04Control StatementsDecisions and loops: if-else, switch, for, while, do-while, break and continue.9 lessons
05ArraySingle, multidimensional, jagged and anonymous arrays.5 lessons
06ConstructorsCreating objects: default, parameterised, copy and private constructors, and chaining.4 lessons
07Exception Handlingtry-catch-finally, try-with-resources, throw vs throws and custom exceptions.14 lessons
08Keywordsthis, super, final, static, strictfp, transient, native and volatile explained.8 lessons
09OOPs ConceptObject-oriented programming: encapsulation, abstraction and abstract classes.4 lessons
10InterfaceInterfaces, default methods, functional, marker and nested interfaces.5 lessons
11PolymorphismCompile-time and runtime polymorphism: overloading and overriding.4 lessons
12InheritanceIS-A and HAS-A relationships: inheritance and aggregation.2 lessons
13MultithreadingThreads, life cycle, priorities, daemon threads, thread pools and synchronization.7 lessons
14Nested ClassesMember, local, static nested and anonymous inner classes.5 lessons
15MiscellaneousGarbage collection, enums, generics, serialization, packages, varargs and more.9 lessons
16String ClassesString, StringBuffer, StringBuilder, StringTokenizer and StringJoiner.5 lessons
17Collection FrameworkThe architecture of the Collections Framework and the Collection interface.2 lessons
18ListList, ArrayList, LinkedList and Vector.4 lessons
19SetHashSet, LinkedHashSet, TreeSet, SortedSet and NavigableSet.6 lessons
20MapHashMap, LinkedHashMap, TreeMap, Hashtable and specialised maps.9 lessons
21Lang PackageCore java.lang classes: Object, wrapper classes and Math.3 lessons
22Util PackageDate, Calendar, Arrays, Scanner, Optional and BitSet.6 lessons

Part 2 Advanced Java

24Java Stream APIProcess data with streams: creating streams, intermediate and terminal operations, collectors, parallel streams and Java 9 to 21 features.83 lessons
25File HandlingRead and write files with byte and character streams, buffered I/O and the modern NIO Files and Path API.40 lessons
26Executor FrameworkRun tasks on thread pools with ExecutorService, Callable, Future and CompletableFuture.19 lessons

Part 3 Practice Programs

27Programs96 basic and pattern programs, plus 230 coding interview programs from easy to hard.3 lessons

Popular Java Comparisons