OOP using Java

Write once, run anywhere — master the world’s enterprise language.

Introduction to Java

Meet Java — the language running billions of devices — and follow your first program from source code to printed output.

Operators

Variables hold the data; operators put it to work — add, compare, decide. Master the symbols every Java program leans on.

Control Statements

Teach your programs to choose: steer execution through if-else ladders and switch cases without a single wrong turn.

Looping Statements

Loops do the boring parts for you — trace while, do-while and for round by round until the condition says stop.

Functions and Modular Programming

Chop big problems into named, reusable methods — pass values in, get results back, and keep main short and sweet.

Recursion

Watch a method call itself: follow factorial down to its base case and back up as each stack frame unwinds.

1D Arrays

One name, many values — create an array, fill its numbered cells, and loop through them without losing track.

2D Arrays

From rows to grids: store values in table[row][column] cells and visit every one with a loop inside a loop.

Strings

Strings look simple but never change — learn their favorite methods and when StringBuilder saves the day.

Introduction to OOP

Meet the blueprint idea behind all of Java: classes define, objects live — build your very first one step by step.

Classes and Objects

From blueprint to living object — build a Car with new, start its engine and watch the call stack work.

Constructors and Overloading

Give your objects a head start: constructors set fields up, and overloading lets one name wear many signatures.

Inheritance and Interfaces

Extend a class, implement an interface, and let one object wear two hats while the call stack climbs the family tree.

Polymorphism

One call, many bodies — watch dynamic dispatch pick the right override at runtime, not compile time.

Exception Handling

When code goes wrong, Java throws an object — trace try, catch and finally as the program refuses to crash.

Collections Framework 1

Meet ArrayList: a resizable array that grows as you add, with add, get, remove and size at your fingertips.

Collections Framework 2

Keys, buckets and no duplicates — put and get your way through HashMap and HashSet in one interactive tour.

Multithreading and Concurrency

Two call stacks, one program — start threads, watch their output interleave, and learn join, sleep and races.

Generics and Lambda Expressions

Write code once for every type: angle-bracket generics checked at compile time, lambdas that shrink boilerplate to one line.

File Handling in Java

Read and write real files — open streams, loop line by line with BufferedReader and always close what you open.