AP® Computer Science A glossary

Data type

Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods

A set of values and a corresponding set of operations on those values. Every data type is primitive or reference.

Appears in the course and exam description (CED): 1.2.A.1

Every value in Java has a data type. The type decides which values are allowed and which operations you can use. The two categories are primitive types (such as int) and reference types (such as String).

Learn it properly, with a checkpoint 1.2 Variables and Data Types

Related terms

Was this page helpful?

No names are ever shown, and every public comment is checked by us first. Please do not include personal details. To get a reply, email [email protected].

↑ Top

Enlarged view of the selected figure