byte
is the smallest integer type.
byte
type is a signed 8-bit type.
The range of a byte type variable is from -128 to 127.
byte
type variables are defined with the byte keyword.
The following code declares two byte variables called b and c:
public class Main {
public static void main() {
byte b, c;
}
}
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |