Java Scrap Book  

Java Scrap Book > Data Type > Integer Data Type Overview

Integer Data Type in Java

There are four types of integer data variables.
They can store both negative and positive values.

Data TypeValueMemory
byte-128 to +127 1 Byte
short-32768 to 327672 Byte
int-2147483648 to 21474836474 Byte
long-9223372036854775808 to 92233720368547758078 Byte


Copyright © 2013-2017

javascrapbook.com is a computer science content service should not be treated as the publisher or speaker of any information provided by another Computer Science content provider.

Contact email: javascrapbook2013@gmail.com