short

short is a signed 16-bit type. short type variable has a range from -32,768 to 32,767.

Here are some examples of short variable declarations:


short s; 
short t;
Home 
  Java Book 
    Language Basics  

Primitive Types:
  1. The Primitive Types
  2. byte
  3. short
  4. int
  5. long
  6. float
  7. double
  8. char
  9. boolean