Data Types, Arithmetic, and Arrays

  • David Parsons
Chapter

Abstract

In this chapter, we introduce Java’s primitive data types, arithmetic operators, String concatenation, and arrays. With these basic components, we can begin to build some useful programs. Along the way we look at some important concepts relating to how Java handles combinations of different data types, including promotion and casting.

Keywords

Prefix Suffix 

Copyright information

© Springer-Verlag London Limited 2012

Authors and Affiliations

  • David Parsons
    • 1
  1. 1.Inst. of Information and Math. SciencesMassey UniversityAlbany, AucklandNew Zealand

Personalised recommendations