Skip to Main Content
Introducing Data Structures with Java
book

Introducing Data Structures with Java

by David Cousins
March 2013
Intermediate to advanced content levelIntermediate to advanced
416 pages
9h 41m
English
Pearson Education India
Content preview from Introducing Data Structures with Java

2

Data Types

Contents

  • Basic data types, their uses and limitations
  • Abstract data types
2.1 INTRODUCTION

This short chapter introduces the basic ‘primitive’—fundamental and in-built—types in Java and discusses their limitations. We also encounter an ‘abstract data type’ as part of the process of specifying additional ones—the structures with which this book is concerned.

2.2 DATA TYPES AND VARIABLES

When a variable is declared in a program, its type defines the kind of data and the range of values that it may contain. All programming languages have some ‘predefined’ data types. Figure 2.1 shows some of these for the Java language.

2.2.1 Operations on integers

Operators for variables of integer type are as follows:

  • assignment of values (=) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Structures and Algorithms Using Java

Data Structures and Algorithms Using Java

William McAllister

Publisher Resources

ISBN: 9788131758649