Skip to main content\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Chapter 5 Java Data and Operators
After studying this chapter, you will
Objectives
Understand the role that data play in effective program design.
Be able to use all of Java’s primitive types and their operators.
Appreciate the importance of information hiding.
Be able to use class constants and class methods.
Know how to use Java’s Math
and NumberFormat
classes.
Be able to perform various kinds of data conversions.