short Java Keyword
The short is a keyword defined in the java programming
language. Keywords are basically reserved words which have specific meaning
relevant to a compiler in java programming language likewise the short
keyword indicates the following :
-- there is a wrapper class corresponding to a short primitive type which is known as the Short class.
-- The Short wrapper class the defines MIN_VALUE and MAX_VALUE constants.
-- These constants represents the range of values for this type compatible with the short class according to the compiler compatability.
-- Please note that all the integer literals in Java programming language are 32−bit integer values unless they are followed by l or L as in 235L, this indicates that the value should be interpreted as a long.
Examples to use the Keyword
short to declare variables within a class