16

Java Fundamentals and Control Loops

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.

16.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 15, you have of course used some of these features, but in this chapter we will provide you with underlying ...

Get Object-oriented Programming Using C++ and Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.