JAva报错

来源:百度知道 编辑:UC知道 时间:2024/05/31 10:09:05
请问cannot be resolved 和cannot be resolved to a tybe 是什么报错!!!

例如你定义一个 int n = abc; 它就报一个cannot be resolved错误;

而如果定义未导入到类,比如 Student s = new Student();
则会报 cannot be resolved to a type的错误

cannot be resolved中文意思是不能被解析,也就是说编译器无法识别,使用了没有定义的变量,cannot be resolved to a tybe 是找不到类的意思,即类型没有定义