Syntax, logical, runtime errors

Ace your homework & exams now with Quizwiz!

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


Related study sets

Sociology Chapter 1 : the Sociological Perspective

View Set

Ultimate AP Biology Vocabulary Review

View Set

Creating and Sustaining a Healthy Work Environment / Leading Change & Managing Conflict

View Set

Atmospheric Pressure, Wind, Circulation

View Set

Next Best Junior Chef; Lights, Camera, Cook!

View Set