Last active
January 28, 2020 16:23
-
-
Save ionelh/cb79f6ffed8a7198b6c4e989fb60d113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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