
LEARNING OBJECTIVES
At the end of this chapter, you should be able to
~
Write Java programs with good grasp and understanding of fundamentals.
~
Understand data types and their usage.
~
Use compound statements and increment and decrement operators.
~
Understand operators and their precedence and association rules.
~
Use relational and equality operators.
~
Understand and use control loops.
JAVA BASICS AND
CONTROL LOOPS
3
3.1 Introduction
In this chapter, we introduce you to Java programming fundamentals like the data types
permitted by Java language, together with various operators like logical operators, arithmetic
operators, etc. In Chapter 2, ...