short type

short is a signed 16-bit type.

short type value has a range from -32,768 to 32,767.

Here are some examples of short variable declarations:


public class Main {
  public static void main() {

    short s;
    short t;
  }
}
java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.