Abstract
A computer program, written in any programming language, is basically made of three elements: data, operations on data, and the logic that determines the operations. Therefore, manipulating the data (i.e. holding and operating on it) is at the core of a typical computer program. The data is held by variables, and the operations are made by using what are called operators. Data handled by the program may come in different types, such as integer or character. Every language supports certain basic data types, called primitive data types. However, a given variable may hold data of one specific type only. As you know from Chapter 1, Java, in addition to supporting primitive data types, supports an infinite number of data types by letting you write classes. In this chapter, I discuss the primitive data types in detail, and introduce some nonprimitive data types built into the Java language.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Paul Sanghera, Ph.D.
About this chapter
Cite this chapter
(2006). Data Types and Operators. In: SCJP Exam for J2SE 5. Apress. https://doi.org/10.1007/978-1-4302-0173-1_2
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0173-1_2
Publisher Name: Apress
Print ISBN: 978-1-59059-697-5
Online ISBN: 978-1-4302-0173-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)