Java Reference
In-Depth Information
2
Introduction to Java
Applications; Input/Output
and Operators
What's in a name?
That which we call a rose
By any other name would
smell as sweet.
—William Shakespeare
The chief merit of language
is clearness.
—Galen
One person can make a
difference and every person
should try.
—John F. Kennedy
Objectives
In this chapter you'll:
Write simple Java
applications.
■
Use input and output
statements.
■
Learn about Java's primitive
types.
■
Understand basic memory
concepts.
■
Use arithmetic operators.
■
Learn the precedence of
arithmetic operators.
■
Write decision-making
statements.
■
Use relational and equality
operators.
■