+ 5

What common mistakes in java have you made or see other people making?

14th Apr 2017, 4:15 PM
Thanh Le
Thanh Le - avatar
7 Antworten
+ 20
String a = "123"; if (a=="123") { ... } ..........
14th Apr 2017, 4:18 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 11
Missing ;s. Sometimes missing brackets {}. Often syntax mistakes with switches. But most generally just logic errors.
14th Apr 2017, 4:17 PM
J.G.
J.G. - avatar
+ 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;
14th Apr 2017, 4:58 PM
Rrestoring faith
Rrestoring faith - avatar
+ 4
missing ;
14th Apr 2017, 4:52 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 4
forget to import the class ._.
14th Apr 2017, 6:47 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
forget to import required package
20th Apr 2017, 10:36 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 1
Forgetting to add capital letters where necessary. 😅
15th Apr 2017, 8:22 PM
Bonita S.
Bonita S. - avatar