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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does this mean?

Syntax error on token “.”, @ expected after this token

A

move code into a method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly