click below
click below
Normal Size Small Size show me how
Fund. of Java 3
Fundamentals of Java Chapter 3
Question | Answer |
---|---|
Defines the rules for interpreting the meaning of statements. | Semantics |
Items in a program that do not change. Are restrincted to primitive data types or strings. | Literals |
Defines the rules for combining symbols and words into statements. | Syntax |
Java can hadle two types of data: | Primative Data Types, Objects |
the operation of joining two character strings end to end. | Concantenation operator |
A collection of classes. | Package |
x is the overall name of the package, y is the name of a subsection within the package, z is the nam of a particular class in a subsection. | import x.y.z |
Understands two messages print and print ln. | System.out |
Returns the first double in the input line. Leading and trailing spaces are ignored. | double nextDouble() |
Returns the first integer in the input line. Leading and trailing spaces are ignored. | int nextInt() |
Returns the input line, including leading and trailing spaces. Warning: A leading newline is returned as an empty string. | String nextLine () |
A step-by-step procedurefor solving a problem or accomplishing some end. | algorithm |
Program algorithms that are often written in a somewhat stylized verson of English | Psuedocode |
Three types of mistakes, or errors: | Syntax errors, Run-time errors, and logic errors |
Errors that occur when we violate a syntax rule. These errors are detected at compilation. | Syntax Errors |
An error that occurs when we ask the computer to do something that it considers illegal, such as dividing by 0. | Run-time errors |
An error that occurs when we fail to express ourselves accuratly. Also called design errors or bugs. | Logic Errors |