Skip to main content

One post tagged with "primitive-types"

View All Tags

· 5 min read
Preet Shah

Introduction to Data Types in Java

Data types in Java specify the size, type, and operations of data that can be stored in a variable. In Java, a statically-typed language, every variable must be declared with a data type. The data type of a variable determines how much space it occupies in memory and what kind of operations can be performed on it.