java基础部分异常
错误: 找不到或无法加载主类 cn.tedu.hello.HelloWorld
原因: java.lang.ClassNotFoundException: cn.tedu.hello.HelloWorld
报上面错误,是无法正确编译java文件为class文件,可能class被误删除,可能eclipse项目管理bug,不自动编译
到项目目录中找到class文件,然后删除,重新编译
或者清除工程

The local variable a may not have been initialized
局部变量必须初始化
The final local variable b cannot be assigned. It must be blank and not using a compound assignment
final int b = 10;
b = 20;
局部变量,常量b,不能被再次赋值。
Dead code?
//与前面布尔结果为false,后面的代码已经不用判断
System.out.println(false && true); //false

最低0.47元/天 解锁文章
795

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



