Programming Languages

Learn Java

105 short lessons with interactive exercises. You start from zero and move from beginner to advanced.

  • 105 lessons
  • 3 levels
  • Arabic & English
  • Start free

What you will learn

  • Write Java programs using types, control flow, methods and arrays
  • Use collections, files and exceptions to handle data and errors
  • Apply object-oriented programming to build maintainable programs
  • Process data with lambdas and the Stream API, and understand multithreading

About this course

A complete Java course from zero to pro: the basics, types and methods, then arrays, collections, exception handling and files, all the way to object-oriented programming, lambda expressions, the Stream API and multithreading. A powerful language, widely used in companies.

Skills

  • Java
  • Object-Oriented Programming
  • Backend Development
  • Android

Lessons

Every lesson is short, and the exercises after it lock in what you learned.

Beginner level

30 lessons
  1. Introduction to Java
  2. How Java and the JVM Work
  3. Your First Java Program
  4. Structure of a Java Program
  5. The main method
  6. Printing with System.out.println
  7. Comments in Code
  8. Variables
  9. Variable naming rules
  10. Basic data types
  11. Integers
  12. Decimal numbers
  13. Characters and Boolean Values (char and boolean)
  14. Text with String
  15. Joining Strings and Inserting Values
  16. Constants with final
  17. Converting between data types
  18. Reading Input with Scanner
  19. Arithmetic operators
  20. Assignment operators
  21. Increment and decrement (++ and --)
  22. Comparison operators
  23. Logical Operators
  24. Conditions with if and else
  25. Using else if
  26. Choosing with switch
  27. The Ternary Operator
  28. The for Loop
  29. The while and do-while loops
  30. Controlling loops with break and continue

Intermediate level

35 lessons
  1. Arrays
  2. Accessing and changing array elements
  3. Multidimensional Arrays
  4. The Enhanced for-each Loop
  5. Defining Methods
  6. Method Parameters
  7. Returning values from methods
  8. Method overloading
  9. Variable Scope
  10. String manipulation
  11. String vs StringBuilder
  12. Comparing strings with equals
  13. Lists with ArrayList
  14. Working with ArrayList Elements
  15. Linked Lists with LinkedList
  16. Sets with HashSet
  17. Maps with HashMap
  18. Queues with Queue
  19. Stacks with Deque
  20. Wrapper types
  21. Automatic conversion between types and values (autoboxing)
  22. Generics
  23. Enums
  24. Working with Date & Time
  25. Exception Handling
  26. Using try and catch
  27. Using finally
  28. Throwing exceptions with throw
  29. Declaring exceptions with throws
  30. Creating a Custom Exception
  31. Reading files
  32. Writing files
  33. Working with paths and files (Paths & Files)
  34. Working with JSON
  35. Packages & Imports

Advanced level

40 lessons
  1. Introduction to Object-Oriented Programming
  2. Classes and Objects
  3. Fields inside the class
  4. Methods inside the class
  5. Constructor
  6. Using the this keyword
  7. Access modifiers
  8. Encapsulation
  9. The static keyword
  10. Using final with Classes & Methods
  11. Inheritance
  12. Using the super keyword
  13. Method Overriding
  14. Polymorphism
  15. Abstract classes
  16. Interfaces
  17. Implementing multiple interfaces
  18. Inner classes
  19. Anonymous classes
  20. Records
  21. Sealed Classes
  22. Lambda Expressions
  23. Functional Interfaces
  24. Method references
  25. Introduction to the Stream API
  26. Filtering Data with filter
  27. Transforming data with map
  28. Collecting data with collect
  29. The Optional type
  30. Multithreading
  31. Creating Threads
  32. Running Tasks with Runnable
  33. Managing threads with ExecutorService
  34. Thread Synchronization
  35. Asynchronous operations with CompletableFuture
  36. Managing resources with try-with-resources
  37. Reading and Writing Data with Streams
  38. Serialization and deserialization
  39. Annotations
  40. Reflection

Start your first lesson today

Get the Lammah app and pick “Learn Java” from the courses. Each lesson takes a few minutes, and you can start free.

Learn tech skills easily, for freeGet the app