Java Reference
In-Depth Information
CHAPTER
2
Java Fundamentals
This chapter builds your foundation for using the Java programming language.
It discusses the details of the fundamentals of Java. The keywords are discussed
as well as how to declare identifiers and variables. The chapter also discusses
literals, constants, strings, references, and the Java arithmetic operators.
Java Keywords
The keywords of a programming language are the words that define the lan-
guage, have special meaning to the compiler, and cannot be used as identifiers.
Table 2.1 displays all the Java keywords.
Table 2.1
Java Keywords
abstract
default
if
private
this
boolean
do
implements
protected
throw
break
double
import
public
throws
(continued)
21
Search WWH ::




Custom Search