Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ShortDemo {
- public static void main (String[] args) {
- //short type stores values in the range from -32768 to 32767
- //This data type is rarely used in Java
- //Instead use an int data type
- short maximumMessageLength = 5000;
- System.out.println("maximumMessageLength value is " + maximumMessageLength);
- //TODO
- //Try changing the value of maximumMessageLength to 32768 and Run again
- //What happened?
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement