Algorithms

Integer

A number with no decimals, positive or negative. Its range depends on how many bytes it takes.

Example

A Java int takes 4 bytes and goes from −2,147,483,648 to 2,147,483,647. A byte goes from −128 to 127.

Test yourself: Integer

Basic data types

Up to what number does a signed byte go in Java?

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.