Mega Code Archive

 
Categories / Java Book / 001 Language Basics
 

0010 int

int is a signed 32-bit type that has a range from -2,147,483,648 to 2,147,483,647. When byte and short values are used in an expression they are promoted to int when the expression is evaluated.