Category: Lessons

Classes

What are Java Classes? A Class in Java is nothing more than a blueprint or a template for creating different objects. These objects define class specific behaviors and properties. A Java Class object contains the properties and behaviors defined

Java Branching Statements

Now that you understand the while and do-while statements from lesson 8.4, let’s move onto the next lesson on the Java Branching Statement. The break, continue, and return statements comprise the branching statements in the Java programming language. Break

Java For Statement

The for statement in Java provides a compact way to iterate or loop over a range of values. Java Programmers often refer to it as the “for loop” due to the way in which it repeatedly loops until a

Java Switch Statement

Now that you understand the if-then and if-then-else from lesson 8.1, let’s move onto the next lesson on the Java Switch Statement. Unlike the if-then and if-then-else statements, the switch statement can have a multiple execution paths. A switch

If Then & If Then Else

If Then Statement The Java if-then statement is the most commonly used of all the control flow statements. The if-then statement controls the flow of your Java program by deciding whether or not to execute a section of code

Java Operators Knowledge Check

Java Operators Questions Now that we have finished going over the section on Java operators, let’s test your knowledge with some questions. You can check your answers at the bottom. Take a look at the following code snippet. What

Java Variables Knowledge Check

Java Variable Questions Now that we have finished going over the section on Java variables, let’s test your knowledge with some questions. You can check your answers at the bottom. What is another name for the term “instance variable”