O'Reilly logo

Object-oriented Programming Using C++ and Java by Anand Vasappanavara, Gautam Vasappanavara, Ramesh Vasappanavara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required