Error messages


Error message Context Type Explained in video*
')' expected compiletime Lesson 20
';' expected compiletime Lesson 20
'myAttribute' has private access in 'MyClass' compiletime Lesson 172
'myMethod()' has private access compiletime Lesson 157
cannot assign value to final variable 'myVariable' compiletime Lesson 235
Cannot find symbol compiletime Lesson 48
Cannot resolve method 'myMethod' in 'MyClass' compiletime Lesson 145
Cannot resolve symbol 'i' compiletime Lesson 207
Cannot resolve symbol 'myVariableName' local variable in termination condition compiletime Lesson 48
Cannot resolve symbol 'myVariableName' access variable from different method compiletime Lesson 97
Cannot resolve symbol 'SomeClass' compiletime Lesson 185
Cannot return a value from a method with void result type compiletime Lesson 97
copy and paste error compiletime Lesson 57
Empty character literal compiletime Lesson 243
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "MyClass.myMethod()" because "myVariable" is null runtime Lesson 122
Exception in thread 'main' java.util.InputMismatchException runtime Lesson 22
java.lang.ArrayIndexOutOfBoundsException: Index ... out of bounds for length ... runtime Lesson 201
java.lang.NullPointerException: Cannot invoke "MyClass.myMethod()" because "myVariable" is null runtime Lesson 179
java.lang.NullPointerException: Cannot store to object array because "this.myVariable" is null runtime Lesson 200
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 runtime Lesson 243
Non-static method 'run()' cannot be referenced from a static context compiletime Lesson 232
Project SDK is not defined. Windows installation compiletime Lesson 7
Project SDK is not defined. Linux installation compiletime Lesson 13
reached end of file while parsing compiletime Lesson 20
Required type int provided type double compiletime Lesson 223
Required type int provided type String compiletime Lesson 102
The value myVariable' assigned to 'myVariable' is never used compiletime Lesson 169
unclosed string literal compiletime Lesson 20
unreachable statement compiletime Lesson 47
unused import statement compiletime Lesson 219
Variable 'myVariable' is assigned to itself compiletime Lesson 169
Variable 'myVariableName' is already defined in method run() compiletime Lesson 22
Variable 'myVariableName' is already defined in the scope compiletime Lesson 22
Variable 'myVariableName' might not have been initialized compiletime Lesson 52
* Please buy the course Java for newcomers and log in to udemy.com to watch the explanation videos.