0
点赞
收藏
分享

微信扫一扫

java6-数据类型

public class Shortdata{
public static void main(String[] args){
byte by = 45;
short sho = 32767;
System.out.println(“sho的值是”+sho);
//获取最大值
System.out.println(Byte.MAX_VALUE);
System.out.println(Short.MAX_VALUE); //获取最小值
System.out.println(Byte.MIN_VALUE);
System.out.println(Short.MIN_VALUE);

//获取整数之的编码方式
String byteStr=Integer.toBinaryString(by);
System.out.println(byteStr);

}}


在这里插入图片描述
java6-数据类型_最小值

 


举报

相关推荐

6、数据类型转换

(6)Hive数据类型

es6 数据类型

java数据类型

JAVA数据类型

java 数据类型

Java数据类型

Java 数据类型

0 条评论