System.out.println(num * 3);//7.3500000000000005
Integer a = 1000, b = 1000;
System.out.println(a == b);//false
Integer c = 100, d = 100;
System.out.println(c == d);//true
<script type="text/javascript">
window.onload=function(){
fn1();
}
function fn1(age,hei) {
var age;
alert(age);
function age() {
alert('hehe');
}
}
</script>
//输出:
“function age() {
alert('hehe');
}”
int a = 2;
double b = 2.22;
a += b; //对的
a = a + b; //编译出错
for (int i = 0; i < 5; i++)
Integer x = new Integer(i);//会编译出错,因为这句是声明语句,改为执行语句就可以了
1万+

被折叠的 条评论
为什么被折叠?



