Primitive Data Types in Java - Java Language Basics

Java examples for Language Basics:Primitive Types

Introduction

Java has eight primitive data types.

They are byte, short, int, long, char, float, double, and boolean.

They are divided into two categories: boolean data type and numeric data type.

The numeric data type can be subdivided into integral and floating-point types.

Integral Data Types

An integral data type is a numeric data type whose values are integers.

Java offers five integral data types: byte, short, int, long, and char.


Related Tutorials