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
- Introduction to Java
- How Java and the JVM Work
- Your First Java Program
- Structure of a Java Program
- The main method
- Printing with System.out.println
- Comments in Code
- Variables
- Variable naming rules
- Basic data types
- Integers
- Decimal numbers
- Characters and Boolean Values (char and boolean)
- Text with String
- Joining Strings and Inserting Values
- Constants with final
- Converting between data types
- Reading Input with Scanner
- Arithmetic operators
- Assignment operators
- Increment and decrement (++ and --)
- Comparison operators
- Logical Operators
- Conditions with if and else
- Using else if
- Choosing with switch
- The Ternary Operator
- The for Loop
- The while and do-while loops
- Controlling loops with break and continue
Intermediate level
35 lessons
- Arrays
- Accessing and changing array elements
- Multidimensional Arrays
- The Enhanced for-each Loop
- Defining Methods
- Method Parameters
- Returning values from methods
- Method overloading
- Variable Scope
- String manipulation
- String vs StringBuilder
- Comparing strings with equals
- Lists with ArrayList
- Working with ArrayList Elements
- Linked Lists with LinkedList
- Sets with HashSet
- Maps with HashMap
- Queues with Queue
- Stacks with Deque
- Wrapper types
- Automatic conversion between types and values (autoboxing)
- Generics
- Enums
- Working with Date & Time
- Exception Handling
- Using try and catch
- Using finally
- Throwing exceptions with throw
- Declaring exceptions with throws
- Creating a Custom Exception
- Reading files
- Writing files
- Working with paths and files (Paths & Files)
- Working with JSON
- Packages & Imports
Advanced level
40 lessons
- Introduction to Object-Oriented Programming
- Classes and Objects
- Fields inside the class
- Methods inside the class
- Constructor
- Using the this keyword
- Access modifiers
- Encapsulation
- The static keyword
- Using final with Classes & Methods
- Inheritance
- Using the super keyword
- Method Overriding
- Polymorphism
- Abstract classes
- Interfaces
- Implementing multiple interfaces
- Inner classes
- Anonymous classes
- Records
- Sealed Classes
- Lambda Expressions
- Functional Interfaces
- Method references
- Introduction to the Stream API
- Filtering Data with filter
- Transforming data with map
- Collecting data with collect
- The Optional type
- Multithreading
- Creating Threads
- Running Tasks with Runnable
- Managing threads with ExecutorService
- Thread Synchronization
- Asynchronous operations with CompletableFuture
- Managing resources with try-with-resources
- Reading and Writing Data with Streams
- Serialization and deserialization
- Annotations
- 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.






