
Explore Java as a general-purpose, high-level, platform-independent, object-oriented, concurrent programming language, with write once, run anyway across operating systems.
Install the JDK and JRE on Windows, verify with javac -version and java -version, and configure PATH to run Java commands.
install the JDK and JRE on macOS to develop and run Java applications, highlighting the write once, run anywhere Java architecture. Verify the setup with terminal commands.
Write your first Java program on Windows using Notepad, exploring the basic syntax with a car analogy and skeleton. Compile and run, import java.lang, and print hello world with system.out.print.
Learn to compile a java file with javac and run the resulting class on Windows using the command prompt, understand common errors, and know that java.lang is automatically imported.
Write your Java program on Mac using TextEdit, switch to plain text, and save as Java file. Understand core Java components—class, main method, and variables—and print hello world with System.out.print.
Learn to compile and run a Java program on macOS using the terminal, handle common errors, and understand auto-import of java.lang and the source versus bytecode.
Explore Java platform independence, where bytecode compiled by javac runs on any OS via the Java Virtual Machine, which uses an interpreter and JIT to translate to machine code.
Install the eclipse ide on Windows, verify jdk via javac and Java, download the eclipse installer, configure the jdk path, and launch eclipse to code your first Java program.
Install the Eclipse IDE for Java developers on macOS, verify the JDK with javac-version and java-version, download the Eclipse installer, and launch Eclipse using the default workspace.
Discover why Eclipse, with its workspace, stores all Java projects in one folder, makes switching workspaces easy, and lets you quickly reopen previous programs from the Package Explorer.
Create a new Java project in Eclipse, configure the JRE settings, and write a hello world program in a basic package, then compile and run to see the console output.
Explore how Java data types define the shape of a variable and literals fill it. Know eight primitive types: byte, short, int, long, float, double, char, boolean, and four categories.
Explore Java's integral data types—byte, short, int, and long—covering their 8, 16, 32, and 64 bit ranges, 2's complement encoding, and how 0 sits on the positive side.
Explore Java's integral data types by building a hands-on program that demonstrates byte, short, int, and long values, ranges, and string concatenation for descriptive output.
Create a simple calculator in Java that adds, subtracts, multiplies, and divides two integers, demonstrates arithmetic operators, and prints results while showing how integer division discards decimals.
Explore floating point data types in Java, including float and double, their sizes, ranges, and precision. Learn when to use float for speed versus double for accuracy in decimal calculations.
Demonstrates declaring float and double variables, using the f suffix for floats, printing values via sysout, and comparing float and double precision with pi.
Integrate floating-point datatypes in a calculator by converting operands and results from int to float, fix division behavior, and practice copying and refactoring code.
Learn to take user inputs in java using the scanner class, import java.util, read floats into A and B from the console, and perform addition, subtraction, multiplication, and division.
Discover how Java's char datatype stores a single Unicode character using 2 bytes, supporting letters, digits, symbols, emojis, and multilingual scripts within the U+0000 to U+FFFF range and Unicode escapes.
Explore the Java char data type by storing letters, numbers (as characters), and symbols, and printing them with System.out.println. Learn Unicode escape sequences, emojis, and ASCII/Unicode relationships.
Learn to use Unicode escape sequences in Java to print your name in Marathi, display emojis and flags, and explore char data types in an Eclipse-based example.
Explore how the boolean data type represents true or false in Java, including its light-switch analogy, declaration syntax, and printing true or false outputs.
Explore the boolean datatype in java using isEven to hold true or false, print statements like '20 is an even number', and apply the negation operator to invert values.
Learn how implicit typecasting in Java automatically converts a smaller datatype to a larger one, with examples like int to float, and char to int via ASCII values.
Explicit typecasting is the manual conversion of one data type to another using a typecast operator, typically from a larger to a smaller type, which may cause data loss.
Explore the Java String datatype, store text using string literals or the new String object, and print results with concatenation.
Discover how to use comments in Java to explain code and temporarily disable lines, covering single-line, multi-line, and documentation comments and their role with javadoc.
Discover how the JVM uses method area, stack memory, and heap memory to run Java programs, and how it reads and executes bytecode with a JIT compiler.
Discover the five main JVM components—the class loader subsystem, runtime memory areas, execution engine, native method interface, and native libraries—and how they load, verify, link, and initialize classes.
Explore how Java uses if-else statements to execute code based on conditions, covering if, if-else, if-else-if, and nested forms with their syntax examples.
Explore Java if-else by comparing two numbers, starting with hardcoded values and then using a scanner to read input and determine whether one is less than the other.
build a Java program that checks whether a number entered by the user is even or odd using an if-else statement and modulus operator, with input taken via a Scanner.
Upgrade the calculator to use if-else-if, prompt for two numbers and an operator, perform add, subtract, multiply, and divide, and handle invalid input via the console scanner.
Learn nested if-else in Java by guarding division with an inner if that checks for a zero denominator. See how integers throw an error while floating-point division yields infinity.
Enhance a Java calculator app by using the or operator in if-else-if conditions to support multiple symbols for add, subtract, multiply, and divide (a/A, s/S, m/M, d/D).
learn how to convert a float result to int in Java with explicit typecasting, avoiding decimal outputs and deciding between int and float printing based on equality.
Build a simple user login program in Java using an if-else statement and the and operator to verify username and password, printing login successful or incorrect username or password.
Build a Java login program using nested if-else that asks for username first, then prompts for password, printing login successful or username is incorrect or password is incorrect.
Master switch statement in Java, which replaces if-else chains by matching a value in cases with default and break, and note limits and data types int, char, string, and enum.
Explore how to pass integer values to a switch statement in Java by building a traffic light program that prints stop, go, or slow down based on input.
Create a Java switch on a char input to drive a traffic light, mapping r, g, y to stop, go, slow down, and convert lowercase to uppercase for proper matching.
Learn to use a string in a switch statement by converting input using the toUppercase method and matching red, green, and yellow, using nextLine with LightSignal variable.
Implement a nested switch in Java to drive a restaurant menu, selecting Italian or Indian cuisine and dishes like lasagna, pasta, paneer tikka, or chicken tikka.
Learn how Java loops repeat code using four pillars—starting value, ending value, condition, and increment or decrement—and explore while, do-while, and for loops.
Explore how a while loop in Java repeatedly executes code while a condition holds, using an incrementation operator to print hello world multiple times and avoid infinite loops.
Showcases printing hello world 100 times with a while loop using the decrementation operator in Java, starting with i at 100, looping while i >= 1, and decrementing with i--.
Learn to calculate the sum of numbers from 1 to N in Java using a while loop. Read input with a scanner, accumulate with sum, and increment or decrement.
Learn the do-while loop in Java, which runs its block at least once before checking the condition, unlike a while loop, and uses do { ... } while (condition) syntax.
Explore the do-while loop by printing hello world 100 times with an incrementation operator, and test a decrementation version to see the do-while loop executes at least once.
Explore a do-while loop using a decrementation operator by duplicating the demo, decrementing i with i--, and printing hello world from 105 down to 1.
Learn how a for loop differs from while and do-while, and how initialization, condition, and increment control a fixed number of repetitions.
Compute factorials in Java using an incrementing for loop, reading a number with scanner and multiplying factorial by i from 1 to num, then printing the result.
Build a factorial program in Java using a decrementing for loop and decrement operator, written from scratch, that reads a number and prints its factorial.
Build a Java multiplication table program using a for loop that reads a number with a scanner and prints the table up to 10, showing expressions with equals.
Learn how the break keyword terminates loops and switches in Java. See a demo that prints numbers 1 to 10 but exits when i equals 6, producing 1 to 5.
Implement a simple order ID search using a while loop and the break keyword, prompting user input and handling found and not found outcomes within a 1–50 range.
Explore the continue keyword in Java, learn its difference from break, and see a practical demo that skips printing six in a while loop.
Use the continue keyword in a while loop to print consonants by skipping vowels A, E, I, O, U, based on ASCII values 65 to 90.
Print vowels using the continue keyword by testing for a, e, i, o, u inside a while loop from 65 to 90, converting numbers to letters in Java.
Learn how Java arrays store multiple values of the same type in a fixed-size container, access elements by 0-based indices, and initialize them statically or dynamically.
Declare an integer array with static initialization, print elements by index, and use a for loop with arr.length to print all values safely.
Explore dynamic initialization in Java by creating a char array of a chosen size, filling it with the letters of your name, and printing the result on a single line.
Learn dynamic initialization of a character array with scanner input, storing each name character via a for loop and arr.length, then printing the characters using s.next.charAt in Java.
Learn how arrays are stored in memory in the Java virtual machine: data resides in the heap, while references stay in the stack; printing reveals type and the memory reference.
Learn to calculate the sum, average, and product of array elements in Java using static initialization, arr.length, and a for loop. Explore defining the int array and printing the results.
Explore how to find the smallest and largest numbers in a Java array using a for loop and if conditions, with step-by-step coding from array initialization to output.
Implement a Java linear search using an int array and scanner to input values, then display the index of the searched number or indicate when it doesn't exist.
Learn how Java methods are reusable blocks of code that take inputs, perform tasks, return outputs, and use syntax with a return type, name, parameters, and body.
Learn how to define and call a user defined method in a Java class, print messages, and resolve static versus instance method calls while exploring access modifiers.
Learn how to pass arguments to a showMessage method, declare corresponding parameters, and print string and integer values, including variables like name, num, and comp.
Refactor a calculator app by moving addition into a void return type method and modularizing subtraction, multiplication, and division using two float inputs from the console.
Learn to implement subtraction, multiplication, and division using void return type by copying and modifying the addition method, then calling each in main to print the results.
Learn to handle division in Java by typecasting the float result to int. Implement a void calculator with four methods and a division by zero check that returns.
Rewrite a Java calculator from void to return-type methods, returning values for addition, subtraction, multiplication, and division with float inputs, and print results in main.
Examine how the division method with a return type outputs a float and uses conditional logic to print integers, decimals, or a division-by-zero message.
Develop a userLogin program that reads a username and password, uses a public static checkCredentials method to verify them, and prints either login successful or username or password is incorrect.
Learn how method overloading lets you define multiple methods with the same name in one class by varying number, type, and order of parameters, enabling clean code and compile-time polymorphism.
Explore method overloading in Java by implementing an AreaCalculatorOverload class with multiple area methods for square, rectangle, and circle, using different parameters to resolve calls at compile time.
Create and call a circle area method in Java using double return type, radius parameter, and pi as 3.14, then compute and print the result (176.625) from main.
Explore how object-oriented programming models real-world entities with classes and objects, using fields and methods, and learn the four pillars of oops: encapsulation, inheritance, polymorphism, and abstraction.
Explore object-oriented programming in Java by building a banking app that creates a Customer with username and account number and a JavaBank class to access and print them.
Learn how getters and setters enable controlled access to private class variables, support encapsulation, and allow validation in setters, with examples like setUserName and getUserName.
Make the Customer class fields private and access them via getter and setter methods, demonstrating encapsulation in a Java Bank example with username and accountNumber.
Create a setAccountNumber setter and a getAccountNumber getter for the accountNumber field. The long-typed account number is set and retrieved on a customer object, demonstrating standard getter and setter usage.
Exercise demonstrates setting a customer's username and account number with setter methods and retrieving them with getter methods, printing John Doe and the number 2 for a second customer.
Explore how the this keyword distinguishes class variables from parameters in Java, using examples such as the get userName method and the setAccountNumber method to reference instance variables clearly.
Add validations inside setter methods to ensure only valid data is stored, such as restricting username length to less than 20 characters and requiring positive account numbers.
Add private double balance and private string address to the customer class, generate getters and setters in eclipse, then store with setBalance/setAddress and retrieve with getBalance/getAddress.
Explore how constructors initialize object fields at creation, covering default, non-parameterized, and parameterized constructors, plus constructor overloading for flexible object instantiation in Java.
Explore parameterized constructors in Java and see how they reduce setter repetition. Build a car class with brand, maxSpeed, and gear type, initializing fields via the constructor and using getters.
Learn to create non-parameterized and parameterized constructors, explore constructor overloading, and see how default constructors are replaced by custom ones using a car example with default and custom values.
Create a parameterized constructor in the Customer class to initialize username, accountNumber, balance, and address, replacing setter calls in Java Bank and using this to assign values.
Use a non-parameterized constructor to assign defaults. Set username and address to not defined, account number to minus one, and balance to minus 1.0 when values are missing.
Replace repetitive print statements by introducing a displayCustomerDetails method that accepts a customer object, enabling cleaner output and centralizes printing within a static context.
Learn to implement a depositAmount method in a customer class in Java to deposit funds, update the balance, and print the deposited amount with the new balance for multiple customers.
Implement withdrawAmount in the Customer class to withdraw when amount is less than balance, update the balance, and print the withdrawal and remaining balance; show insufficient balance otherwise.
Static variables in Java belong to the class and are shared by all objects, unlike instance variables which are unique to each object, as shown by a housing analogy.
Declare a static integer in the customer class to count total customers, access it via the class name, increment in the parameterized constructor, and expose it with a static getter.
Automatically assign account numbers to new customers with a static counter variable, remove the account number field, and increment before assignment while displaying the total number of customers.
Discover how a child class inherits features from a parent class, enabling code reusability, better organization, and maintainability. Explore single, multi-level, and hierarchical inheritance in Java using the extends keyword.
Demonstrates single inheritance in Java by modeling a phone and Android phone, using extends to share methods, batteryLevel, and clickPicture with a child class.
demonstrates multilevel inheritance by chaining a base phone, Android phone, and one plus phone, showing extends, inheritance, and inherited methods such as click picture, make call, and send SMS.
Demonstrate hierarchical inheritance in Java by deriving AndroidPhone and AppleiPhone from a single parent phone class, enabling shared methods like make call, send SMS, and useMultiTouchGesture.
Separate the Phone, Android Phone, and Apple iPhone classes into individual files within a hierarchical inheritance package, then extend them from Phone and test the program.
Explore how the super keyword in Java enables a child class to access the parent class’s constructors, fields, and methods, enabling inheritance and polymorphism.
Demonstrates using the super keyword to call the parent constructor from a child class with non-parameterized constructors, and explains constructor chaining across multi-level inheritance.
Learn how to use the super keyword with parameterized constructors to enable constructor chaining between a parent phone class and the Android phone class.
Learn how to access parent class fields using the super keyword in Java, resolve naming conflicts, and see how super searches the immediate parent and ancestors in multi-level inheritance.
Master polymorphism in Java by learning compile-time method overloading and run-time method overriding, with real-world examples showing how the same method behaves differently depending on the object.
Explore polymorphism by overriding a parent method in the Android phone subclass and calling the overridden turn on method through a child class object, illustrating inheritance and method overriding.
Explore Java abstraction by implementing an abstract employee class with abstract methods calculate salary and perks, extend it with full-time and part-time employees to compute salaries and perks.
learn how to use the super keyword to call parent class constructors and methods from a child class, and how to resolve naming conflicts in a polymorphism example.
Explore dynamic method dispatch, or runtime polymorphism, in Java using a parent reference holding a child object. See how overridden child methods run while parent-only methods still execute.
Demonstrate dynamic method dispatch with a TV and LG smart TV, showing how overridden methods execute via a parent reference and how inheritance governs access.
Ready to build a strong foundation in Java programming?
This course is designed to take you from absolute beginner to a confident Java programmer through hands-on coding, real-world examples, quizzes, coding exercises, and assignments. Whether you're a college student, an aspiring software developer, or a working professional, this course will help you master Core Java the right way.
Unlike courses that focus only on theory, every concept in this course is explained with practical examples and live coding demonstrations, helping you understand not only how Java works but also why it works that way.
Why Learn Java?
Java is one of the world's most popular and widely used programming languages. It powers enterprise applications, banking systems, Android applications, cloud platforms, backend services, and millions of business applications across the globe.
Learning Java provides a strong programming foundation and opens doors to careers in software development, backend engineering, Android development, Spring Boot development, and many other technologies.
What Makes This Course Different?
Learn by Building – Every concept is demonstrated through practical coding examples.
Beginner Friendly – No prior programming experience is required.
Step-by-Step Explanations – Complex topics are broken down into simple, easy-to-understand lessons.
Real World Examples: Every programming concept is first explained with a real world example, and then we jump into programming,
Hands-On Practice – Reinforce every concept through coding exercises and quizzes.
Industry Best Practices – Learn clean coding techniques and programming standards used by professional developers.
What You'll Learn
Java Fundamentals: Understand how Java works, install the JDK, write your first program, and become familiar with the Java ecosystem.
Variables & Data Types: Learn how data is stored, manipulated, and used effectively in Java applications.
Control Statements: Write intelligent programs using if-else statements, switch statements, loops, break, and continue.
Arrays: Store and process multiple values efficiently using one-dimensional and multidimensional arrays.
Methods: Create reusable code using methods, parameters, return values, and method overloading.
Object-Oriented Programming (OOP): Learn Classes, Objects, Constructors, Encapsulation, Inheritance, Polymorphism, Abstraction, and Interfaces through practical examples.
Exception Handling: Write robust applications by handling runtime errors using try-catch, throws, throw, custom exceptions, and try-with-resources.
File Handling: Read and write files using Java I/O while understanding streams, readers, writers, and serialization concepts.
Multithreading: Build responsive applications using threads, synchronization, thread communication, executors, and concurrent programming concepts.
Collections Framework: Master ArrayList, LinkedList, HashSet, TreeSet, HashMap, PriorityQueue, and other commonly used collections.
Lambda Expressions & Stream API: Write concise modern Java code using functional programming concepts and powerful Stream operations.
JDBC & MySQL: Connect Java applications to relational databases and perform CRUD operations using JDBC.
By the end of this course, you'll be able to write clean, efficient Java programs and understand industry-standard coding practices. Enroll today and start your journey to becoming a confident Java developer!