+ 5
What common mistakes in java have you made or see other people making?
7 Antworten
+ 20
String a = "123";
if (a=="123") {
...
}
..........
+ 11
Missing ;s. Sometimes missing brackets {}. Often syntax mistakes with switches. But most generally just logic errors.
+ 7
Programming Standards.
* Using public instead of protected/private (when necessary)
* Bad naming conventions
* Lack of error handling
* Redundancies, example:
if(x==3)
return true;
else
return false;
instead of:
return x==3;
+ 4
missing ;
+ 4
forget to import the class ._.
+ 2
forget to import required package
+ 1
Forgetting to add capital letters where necessary. 😅