Data Types

Java Primitive Data Types: Sizes, Ranges and Defaults

Java has eight primitive data types that hold plain values, not object references. Sizes, ranges, defaults, literals, overflow, floating-point precision, casting rules and wrapper classes, with tested Java 25 examples.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.