Core Java Fundamentals
Learn Java from the ground up: how the JVM runs your code, data types and variables, operators, conditionals, loops, strings and objects. Every lesson traces a real program line by line.
Java Basics
- Java History and Features: Learn about Java's origin, evolution, and key features that make it popular
- JVM, JRE, and JDK: Understanding the Java ecosystem components and their relationships
- Java Identifiers and Keywords: Learn the rules for naming variables, methods, and classes in Java, and understand the role of reserved words.
Data Types & Variables
- Primitive Data Types: Understanding Java's 8 primitive data types and their characteristics
- Non-Primitive Data Types: Explore how non-primitive (or reference) data types like Arrays, Strings, and Classes work in Java, focusing on how they are stored in memory.
- Variables and Memory Management: Understanding how Java manages variables in stack and heap memory
- Type Casting in Java: Understand how to convert data from one primitive type to another, covering both automatic (implicit) and manual (explicit) conversions.
- Variable Scope in Java: Understand the difference between local, instance, and class (static) variables, their lifecycles, and where they are stored in memory.
- Constants and Final Keyword: Learn how to create constants and prevent modification of variables, methods, and classes using the "final" keyword in Java.
Operators
- Arithmetic Operators: Learn the fundamental arithmetic operators in Java to perform mathematical calculations like addition, subtraction, multiplication, division, and finding remainders.
- Relational Operators: Learn how to compare values in Java using relational operators. These operators evaluate the relationship between two operands and return a boolean result (true or false).
- Logical Operators (&&, ||, !): Learn how to combine multiple boolean conditions using AND, OR, and NOT operators to create more complex decision-making logic.
- Assignment Operators: Learn how to assign and modify values of variables using basic and compound assignment operators.
- Increment/Decrement Operators: Learn how to use the pre-increment (++i), post-increment (i++), pre-decrement (--i), and post-decrement (i--) operators in Java.
- Bitwise Operators: Learn how to perform operations on the individual bits of integer-type numbers, a fundamental concept for low-level programming and optimization.
- Ternary Operator: Learn how to use the ternary operator, a compact, inline conditional for simple if-else logic.
- Operator Precedence: Understand the rules that dictate the order of operations in Java expressions, similar to PEMDAS or BODMAS in mathematics.
Conditional Statements
- Conditional Statements (if-else): Learn how to make decisions in your code using conditional statements
- Switch Statement: Learn how to use the switch statement to control the flow of execution based on the value of a variable or expression.
Loops
- For Loop: Learn how to execute a block of code a specific number of times using the for loop.
- While Loop: Learn how to repeat a block of code as long as a specified condition is true using the while loop.
- Do-While Loop: Learn about the do-while loop, a post-test (or exit-controlled) loop that guarantees the loop body is executed at least once.
- Enhanced For Loop (For-Each): Learn a simpler way to iterate over arrays and collections using the enhanced for loop, also known as the for-each loop.
- Nested Loops: Learn how to use loops inside other loops to handle more complex repetitive tasks, like working with two-dimensional data or creating patterns.
- Break Statement: Learn how to prematurely exit loops and switch statements using the break keyword.
- Continue Statement: Learn how to use the "continue" statement to skip the current iteration of a loop and proceed to the next one.
Strings & Objects
- Java Strings: Creation and Immutability: A deep dive into how Java strings are created, stored in memory, and why they are immutable.
- Object Creation and References: Learn how objects are created and referenced in Java