数据类型演示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);
 }
}

 

 

posted @ 2014-09-14 23:37  fantasy12436109  阅读(172)  评论(0编辑  收藏  举报