Syntax, logical, runtime errors
Identifiers
-case sensitive -cannot have any space -cannot start with any digit number - only characters allowed are: "$" and "_" -[A-Z], [a-z], [0-9] - EX: (Test, main, String, args, a, class, answer, x12345y)
runtime error
While in execution system fails compiles, starts to run but won't finish
Type of error: Forget to put a blank to separate words, eg: System.out.println ("this" + "and" + "that");
logical error
Scanner scan =
new Scanner(System.in);
Type of error: Type "man" instead of "main"
runtime error
int temperature =
scan.nextInt();
Type of error: Forget the semicolon at the end of one of the statements
syntax error
logical error
the program can read it but not the output you wanted - wrong flawed logic
syntax error
the program can't read it; it is grammatically wrong