Basic Syntax


The following list gives the basic syntax of Java:
Review: Checking Syntax
    Which statement is NOT true?

      Each code statement must end with a semicolon.
      Every line of code that runs in Java must be inside a class.
      Java is case sensitive.
      The main( ) method is optional for a Java program.
        Result: