摘要:
truefalsetrue String s1="hello" ;String s3="hello"; hello是字符串常量,分配在datastatement s1和s3分配在栈空间,datastatement存在一个hello以后不再存储相同元素 因此s1==s3 s1=new String(" 阅读全文
posted @ 2018-05-02 20:24
circle元
阅读(160)
评论(0)
推荐(0)
摘要:
单目>算数运算符>移位>比较>按位>逻辑>三目>赋值 单目运算符(一元运算符,即一个变量):+,-,++,-- 算数运算符:+,-,*,/,% 移位运算符:<<,>> 关系运算符:>,<,>=,<=,==,!= 位运算符:&,|,~,^, 逻辑运算符:&&,|| 三目运算符:表达式1?表达式2:表达 阅读全文
posted @ 2018-05-02 19:26
circle元
阅读(8689)
评论(0)
推荐(4)
摘要:
当变量作为作为类成员使用时,java才确保给定其初始值,防止程序运行时错误 基本数据类型的包装类都属于引用类型 基本类型 大小(字节) 默认值 封装类 byte 1 (byte)0 Byte short 2 (short)0 Short int 4 0 Integer long 8 0L Long 阅读全文
posted @ 2018-05-02 19:03
circle元
阅读(4560)
评论(0)
推荐(0)

浙公网安备 33010602011771号