19 terms

Java Chapter 3

STUDY
PLAY
relational operator
<, >, ==, !=, <=, >=
simple statement
A statement such as balance = balance - amount; is called a ___________________.
boolean
A predicate method returns a _______ value.
0
The length of an empty string
trace
A program ____________________ consists of messages that show the path of execution.
compareTo method
The ___________ compares strings in dictionary order.
block statement
The purpose of a(n) ____________________ is to group several statements together to form a single statement.
flags
Boolean variables are sometimes called ____, because they can have only two states: "up" and "down."
null
The ____________________ reference indicates that a string variable refers to no string at all.
six
Java has _______ relational operators
compound statement
A statement that contains other statements, such as if(x >= 0) y = z; is called a _______________
logical operator
An operator that combines test conditions is called a(n) ____.
OR
The || operator means
boolean
The ____________________ type has two values: true and false.
==
Used to test for null.
!
The "NOT" operator
&&
The AND operator
||
The OR operator
Condition
The "test" in an if statement