Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Java coding/debugging check list

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, All
I am a java programmer.
In my job, I found most of the bugs(except the logic mistakes in the design) are very common, for example: missing a parenthesis, cast an object into another uncompatible type, ...
So I want to make a check list for java programmers, in which I lisk all the common mistakes, so when we coding we can try to avoid them, and when we have some compiling / running time error, we can also use this check list help us to find the bug.
Followed is my check list, please give me any suggestions of yours.
Java Programmer Check List
1. match the parenthesis
2. initialize the variables
3. use �equals� to compare two objects
use �==� to compare two primitive variables
4. every line ended by ;
5. the instance variable have the scope as �private�
6. use constant to avoid the magic number
7. include all the required library
8. catch the exception
9. deep copy of an object (clone)
10. cast an object to another type
11. have a return command if the method have some return type.
12. flush and close a file after write data into it
13. use & and && correctly

Thanks!
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I believe that you already posted this in Certification Study. Please do not cross post. We all read multiple forums.
 
reply
    Bookmark Topic Watch Topic
  • New Topic