Error Messages in IDE (not on test) Flashcards
1
Q
What does this mean? “X cannot be resolved to a type”
A
Import statement is missing
2
Q
What does this mean? “The type X is ambiguous”
A
A class is found in multiple packages. Fix it by If you explicitly import a class name, it takes precedence over any wildcards present.
3
Q
What does this mean?
Exception in thread “main” java.lang.Error: Unresolved compilation problem:
The blank final field foo may not have been initialized
A
Compiler error from FINAL variable that was not initialized.
4
Q
What does this mean?
Syntax error on token “.”, @ expected after this token
A
move code into a method