Java Language Basics

This part of the tutorial covers the basics of the language, including: variables, operators, expressions, statements, blocks and control flow statements.

  1. Creating Variables and Naming Them

    Rules to name variables.

  2. Creating Primitive Type Variables in Your Programs

    Syntax to create and initialize primitive type variables.

  3. Creating Arrays in Your Programs

    Creating fixed-length containers of objects with arrays.

  4. Using the Var Type Identifier

    Defining Variables with Var.

  5. Using Operators in Your Programs

    Computing things with operators.

  6. Summary of Operators

    Wrapping up the Java operators.

  7. Expressions, Statements and Blocks

    Understanding expressions, statements and blocks, and how to group statements into blocks.

  8. Control Flow Statements

    This section describes the decision-making statements, the looping statements, and the branching statements supported by the Java programming language.

  9. Branching with Switch Statements

    How to use switch statements to control the flow of your program.

  10. Branching with Switch Expressions

    Extend switch so it can be used as either a statement or an expression.

Back to Tutorial List