• Understand top-level view of expressions and statements.
  • Expressions

    Expressions – syntactically correct combination of variables, literals, operators, and method calls that evaluate to a value with a specific type. The following meta language shows where expressions are found within Java statements

    Statements

    Statements – unit of execution terminated by a ; Java has three categories of statements.

    Blocks

    Blocks – sequence of statements between balanced braces { } where each statement is terminated by a ; - discussed in Our First Java Programs

    • A block is not terminated by a ;
    { 
       int i = 0;
       double d = 0.0;
    }; // This is incorrect