数据类型演示DataTypeDemo

/**
*数据类型演示
*/
public class DataTypeDemo{
 public static void main(String[] args){
  //直接赋予的值,称为字面量
  //byte b = 128;
  long l = 123L;
  char c = '中';//  ASCII(0-127)  unicode(65535个字符)GBK UTF-8 ISO-8859-1
  int i = c;
  System.out.println(i);
 }
}

原文地址:https://www.cnblogs.com/fantasy12436109/p/3971985.html