Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
Members have full access to the forums. Advertisements are removed for registered users.
The data type is used when a variable is defined. Look at the definition for s. Its datatype is there.
Data type is Short only
@srinivasjsf Check your spelling. Short (a class) is not the same as short (a primitive).