Trail: Learning the Java Language
Lesson: Language Basics
Questions and Exercises
Home Page > Learning the Java Language > Language Basics
Questions and Exercises: Expressions, Statements, and Blocks

Questions

  1. Operators may be used in building ___, which compute values.

  2. Expressions are the core components of ___.

  3. Statements may be grouped into ___.

  4. The following code snippet is an example of a ___ expression.

     1 * 2 * 3
    
  5. Statements are roughly equivalent to sentences in natural languages, but instead of ending with a period, a statement ends with a ___.

  6. A block is a group of zero or more statements between balanced ___ and can be used anywhere a single statement is allowed.

Exercises

Identify the following kinds of expression statements:

Check your answers

Previous page: Expressions, Statements, and Blocks
Next page: Control Flow Statements

Discuss
We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of replies — your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.