Java Reference
In-Depth Information
binary arithmetic operators
Used to perform basic arithmetic. Java provides
several, including
+
,
-
,
*
,
/
, and
%
. (10)
block
A sequence of statements within braces. (13)
break
statement
A statement that exits the innermost loop or
switch
statement.
(16)
bytecode
Portable intermediate code generated by the Java compiler. (4)
call-by-value
The Java parameter-passing mechanism whereby the actual
argument is copied into the formal parameter. (18)
comments
Make code easier for humans to read but have no semantic meaning.
Java has three forms of comments. (5)
conditional operator (
?:
)
An operator that is used in an expression as a short-
hand for simple
if
-
else
statements. (17)
continue
statement
A statement that goes to the next iteration of the innermost
loop. (17)
do
statement
A looping construct that guarantees the loop is executed at least
once. (15)
equality operators
In Java,
==
and
!=
are used to compare two values; they
return either
true
or
false
(as appropriate). (11)
escape sequence
Used to represent certain character constants. (7)
for
statement
A looping construct used primarily for simple iteration. (14)
identifier
Used to name a variable or method. (7)
if
statement
The fundamental decision maker. (13)
integral types
byte
,
char
,
short
,
int
, and
long
. (6)
java
The Java interpreter, which processes bytecodes. (4)
javac
The Java compiler; generates bytecodes. (4)
labeled
break
statement
A
break
statement used to exit from nested loops. (16)
logical operators
&&
,
||
, and
!
, used to simulate the Boolean algebra concepts
of AND, OR, and NOT. (12)
main
The special method that is invoked when the program is run. (6)
method
The Java equivalent of a function. (18)
method declaration
Consists of the method header and body. (18)
method header
Consists of the name, return type, and parameter list. (18)
null statement
A statement that consists of a semicolon by itself. (13)
octal and hexadecimal integer constants
Integer constants can be represented in
either decimal, octal, or hexadecimal notation. Octal notation is indicated
by a leading
0
; hexadecimal is indicated by a leading
0x
or
0X
. (7)
overloading of a method name
The action of allowing several methods to have
the same name as long as their parameter list types differ. (19)
Search WWH ::
Custom Search