Knowledge baseExam Center
ENEnglish
Choose language13

Learn Java — Basic

Learn Java fundamentals: data types, program control, objects, collections and stream data processing. Create reports, handle exceptions, and work with dates, amounts and regular expressions.

COURSE OVERVIEWREADY
Lessons: 70
Quizzes: 12
All steps: 82
$Ready to start
Knowledge base for this technology

What you will learn

  • Create programs with methods, conditions and loops, and process arrays and text.
  • Model objects using classes, constructors, interfaces, inheritance and encapsulation.
  • Use collections, generic types, lambdas and streams for filtering, sorting, grouping and calculations.
  • Handle exceptions and resources, format numbers correctly, and process dates, BigDecimal amounts and regex patterns.

Course curriculum

Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.

70 lessons12 quizzes82 steps total
  1. 01LESSON
    LESSON 1: Hello World and println – you run your first programAvailable now
  2. 02LESSON
    LESSON 2: Scanner input – you read numbers and textLocked
  3. 03LESSON
    LESSON 3: Comments // and /* … */ – you document your codeLocked
  4. 04LESSON
    LESSON 4: Variables and final: declaration, initialization, mutabilityLocked
  5. 05LESSON
    LESSON 5: Integer types byte / short / int / long – ranges and conversionsLocked
  6. 06LESSON
    LESSON 6: Floating-point types float / double – precision and errorsLocked
  7. 01QUIZ
    Quiz 1: lessons 1–6Locked
  8. 07LESSON
    LESSON 7: char and String – special characters, UnicodeLocked
  9. 08LESSON
    LESSON 8: Arithmetic operators and order of operations – a mini calculatorLocked
  10. 09LESSON
    LESSON 9: Assignments, ++ and -- – shortcuts and pitfallsLocked
  11. 10LESSON
    LESSON 10: Comparisons and logic (&&, ||, !) – compound conditionsLocked
  12. 11LESSON
    LESSON 11: if/else – decisions that control the flowLocked
  13. 12LESSON
    LESSON 12: Nested if (multi-variant logic)Locked
  14. 02QUIZ
    Quiz 2: lessons 7–12Locked
  15. 13LESSON
    LESSON 13: The ternary operator ?: – shorter conditionsLocked
  16. 14LESSON
    LESSON 14: classic switch (int/String) – a text menuLocked
  17. 15LESSON
    LESSON 15: The while loop – repeating until a condition is metLocked
  18. 16LESSON
    LESSON 16: The do-while loop – input validationLocked
  19. 17LESSON
    LESSON 17: The for loop: counter and controlled iterationLocked
  20. 18LESSON
    LESSON 18: break and continue: controlling the flow of a loopLocked
  21. 03QUIZ
    Quiz 3: lessons 13–18Locked
  22. 19LESSON
    LESSON 19: The for-each loop – iterating over collections/arraysLocked
  23. 20LESSON
    LESSON 20: Nested loops – generating patterns and tablesLocked
  24. 21LESSON
    LESSON 21: 1D Arrays – creating, filling, readingLocked
  25. 22LESSON
    LESSON 22: Array operations: minimum, maximum, sum and averageLocked
  26. 23LESSON
    LESSON 23: Linear search vs Arrays.binarySearchLocked
  27. 24LESSON
    LESSON 24: Sorting with Arrays.sort – ascending/descendingLocked
  28. 04QUIZ
    Quiz 4: lessons 19–24Locked
  29. 25LESSON
    LESSON 25: 2D Arrays: matrices, row and column sumsLocked
  30. 26LESSON
    LESSON 26: Jagged arrays: “triangles” and zigzagsLocked
  31. 27LESSON
    LESSON 27: String: equals vs == – comparing correctlyLocked
  32. 28LESSON
    LESSON 28: String methods: substring, indexOf, replaceLocked
  33. 29LESSON
    LESSON 29: Split and join: split, String.join, mini‑CSV in memoryLocked
  34. 30LESSON
    LESSON 30: StringBuilder: efficient string concatenationLocked
  35. 05QUIZ
    Quiz 5: lessons 25–30Locked
  36. 31LESSON
    LESSON 31: Formatting – printf and String.formatLocked
  37. 32LESSON
    LESSON 32: Methods: parameters and return valueLocked
  38. 33LESSON
    LESSON 33: Method overloadingLocked
  39. 34LESSON
    LESSON 34: Variable scope: locals, parameters, and name shadowingLocked
  40. 35LESSON
    LESSON 35: Recursion: factorial and Fibonacci with limitsLocked
  41. 36LESSON
    LESSON 36: Classes and objects: the first domain modelLocked
  42. 06QUIZ
    Quiz 6: lessons 31–36Locked
  43. 37LESSON
    LESSON 37: Constructors and this – initializing stateLocked
  44. 38LESSON
    LESSON 38: Encapsulation: access modifiers, getters/settersLocked
  45. 39LESSON
    LESSON 39: static members – instance counter / utility methodsLocked
  46. 40LESSON
    LESSON 40: final in OOP: immutability and class constantsLocked
  47. 41LESSON
    LESSON 41: toString – a readable description of an objectLocked
  48. 42LESSON
    LESSON 42: equals and hashCode: the contract and equality testsLocked
  49. 07QUIZ
    Quiz 7: lessons 37–42Locked
  50. 43LESSON
    LESSON 43: enum: enumerated types with methodsLocked
  51. 44LESSON
    LESSON 44: Inheritance (extends) and superLocked
  52. 45LESSON
    LESSON 45: Overriding methods – polymorphismLocked
  53. 46LESSON
    LESSON 46: Abstract classes: a shared API and partial implementationLocked
  54. 47LESSON
    LESSON 47: Interfaces: implementation and “programming to an interface”Locked
  55. 48LESSON
    LESSON 48: Comparable and Comparator – ordering objectsLocked
  56. 08QUIZ
    Quiz 8: lessons 43–48Locked
  57. 49LESSON
    LESSON 49: Exceptions: checked vs unchecked — when to use whichLocked
  58. 50LESSON
    LESSON 50: try/catch – safe error handlingLocked
  59. 51LESSON
    LESSON 51: Multiple catch and the exception hierarchyLocked
  60. 52LESSON
    LESSON 52: finally and try-with-resources (on in-memory objects)Locked
  61. 53LESSON
    LESSON 53: throw and a custom exception – you define MyExceptionLocked
  62. 54LESSON
    LESSON 54: ArrayList: a dynamic list and basic operationsLocked
  63. 09QUIZ
    Quiz 9: lessons 49–54Locked
  64. 55LESSON
    LESSON 55: HashSet: unique elements and a fast membership testLocked
  65. 56LESSON
    LESSON 56: HashMap – a key→value map, counting occurrencesLocked
  66. 57LESSON
    LESSON 57: Iterators and for‑each – safe iteration over collectionsLocked
  67. 58LESSON
    LESSON 58: Generics - classes and methods parameterized by typeLocked
  68. 59LESSON
    LESSON 59: Generic Bounds: extends and super (wildcards)Locked
  69. 60LESSON
    LESSON 60: Stack and Queue: Deque as a stack/queueLocked
  70. 10QUIZ
    Quiz 10: lessons 55–60Locked
  71. 61LESSON
    LESSON 61: PriorityQueue – a priority queue in practiceLocked
  72. 62LESSON
    LESSON 62: Functional interfaces and lambdas: Predicate, FunctionLocked
  73. 63LESSON
    LESSON 63: Method and constructor referencesLocked
  74. 64LESSON
    LESSON 64: Streams: creating and map/filterLocked
  75. 65LESSON
    LESSON 65: Streams: collect into lists, sets, and mapsLocked
  76. 11QUIZ
    Quiz 11: lessons 61–65Locked
  77. 66LESSON
    LESSON 66: reduce and Optional – aggregations and missing valuesLocked
  78. 67LESSON
    LESSON 67: Grouping and statistics in streams: groupingBy, summarizingLocked
  79. 68LESSON
    LESSON 68: java.time: LocalDate, LocalDateTime, Duration, PeriodLocked
  80. 69LESSON
    LESSON 69: BigDecimal – exact financial calculationsLocked
  81. 70LESSON
    LESSON 70: Regular expressions: Pattern/Matcher, validationLocked
  82. 12QUIZ
    Quiz 12: lessons 66–70Locked
  83. +EXAM
    Confirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status