This section provides a foundational constructs needed to learn Java language. We will start with a simple program and then learn about variables and various operators.
Start with a very simple program. The focus is to get you to write a very simple program, compile it and execute it. You will jump in and do hands-on right from the beginning.
- Understand why do we need variables? Different data types and the rules to name them. You will also learn about how to use the variables.
How to performs arithmetic operations like addition and subtractions? How to use variables and literals in operations? You will learn Arithmetic and Unary operators.
- How to compare values? This lesson discuss how to build logic by comparing various values. We then discuss on how do we compare the conditions.
Control Flow Statements
How can we control the program flow? How can the program take different path depending the values? We will look at if statements and loops.
You will learn about branching statements. The program takes a particular path depend on the evaluation of the condition. This will be beginning of the wonderful journey of building logic into your program.
How to execute something repetitively? You will learn about various loop options and why there are so many different loops in Java.
Enhanced for loop make it easier to look into individual elements from an array or a collection.
Object Oriented Programming
You will learn about the concepts of the Object Oriented Programming and why it is needed.
Functions are a set of statements which can be invoked repetitively. It is used to modularize the source code into small chunks of functionality.
- You will learn about the class and objects, and how they are related to each other.
Deep dive with example to understand these concepts
An interface is a contract between the class and the user of the class