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:




      “If you’re reading this...    
      Congratulations, you're alive.    
      If that’s not something to smile about,    
      then I don’t know what is.”    
      ― Chad Sugg, Monsters Under Your Head