Skip to content

Instantly share code, notes, and snippets.

@ionelh
Last active January 28, 2020 16:23
Show Gist options
  • Save ionelh/cb79f6ffed8a7198b6c4e989fb60d113 to your computer and use it in GitHub Desktop.
Save ionelh/cb79f6ffed8a7198b6c4e989fb60d113 to your computer and use it in GitHub Desktop.
// min / max value
System.out.println(Byte.MIN_VALUE);
System.out.println(Byte.MAX_VALUE);
// byte can be used to save space when working with the integers and the range of byte is enough.
// It is 4 times smaller than int
byte fifty = 50;
byte min = -128;
byte max = 127;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment