The 10 most common Java mistakes
Missing ( ) [ ] : Unpredictable error messages.
Forgotten Imports : Class not Found.
A Class for an Object: Method not found (if not static).
Spelling mistake : Various error messages.
Wrong Signature : Wrong type of Arguments.
Return nothing = void: Invalid method declaration.
Wrong equality : Incompatible type for if.
Endless loops : Program seems to be hanged.
Many public classes : Public class x must be defined in a file. called ”x.java".
Trusting your code without testing!