Data Types, Arithmetic, and Arrays

  • David Parsons


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.


Data Type Decrement Operator Arithmetic Operator Primitive Type Type Conversion 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

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