Java Code Review

This is one of most important aspect of quality software development.  'Code Review' question is generally asked for senior java developer or java team lead position. This is very important task performed by team lead to confirm the coding standard of application.
  • Adherence to standards and guidelines (This means you should have coding standards set for your project)
  • Documentation. All good code must be documented cleanly.
  • repetitive code (candidate for refactoring), usage of OOPS principle
  • meaningful variable names
  • variable and method scopes (private vs public)
  • Use of good design patterns (if possible)
  • Good test cases associated with the code. Preferably automated test cases.(it is not easy to automate all test cases, though it is desirable. If such is the case, it should document how to test the given functionality)
  • Closing all the Streams in finally block
  • Exception handling. We prefer to use the Logger to log instead of ex.printStackTrace() in our company
  • Remove unused methods/variables
  • Look for potential cause of NullPointerException
In addition since you spoke about Java, there are many tools available allow you to analyze the code and check for style and code cleanliness and even potential issues.
All of these can be configured with an automated build/continuous integration process and check for issues even before you go through a manual code review. I used PMD and Checkstyle at my last project and I was pleasantly surprised that how many issues were we able to discover and fix even before we sat down for a code review.

14 comments:

  1. Thanks for your great and helpful presentation I like your good service.I always appreciate your post.That is very interesting I love reading and I am always searching for informative information like this.Well written article Thank You for Sharing with Us pmp training fee | pmp certification course in chennai | best pmp training institute in chennai| | pmp training class in chennai \ pmp training fee

    ReplyDelete
  2. Very nice article for java programming
    Visit here for online data entry jobs

    ReplyDelete
  3. Very good brief and this post helped me alot. Say thank you I searching for your facts. Thanks for sharing with us!
    apple iphone service center in chennai | apple ipad service center in chennai | apple iphone service center in chennai

    ReplyDelete
  4. Beautiful detailed and sensitive position. I can not forget to read such a useful article about the art of researchers in general. Rather cool to check that your message has been added.

    DedicatedHosting4u.com
    dedicatedhosting4u@gmail.com

    ReplyDelete
  5. Nice Posting
    Sanjary kids is the best playschool, preschool in Hyderabad, India. Start your play school,preschool in Hyderabad with sanjary kids. Sanjary kids provides programs like Play group,Nursery,Junior KG,Serior KG,and Teacher Training Program.
    play school in hyderabad
    Preschool in hyderabad
    Preschool teacher training course in hyderabad
    pre and primary teacher training course in hyderabad

    ReplyDelete
  6. I looked at some very important and to maintain the length of the strength you are looking for on your websitedata science certification

    ReplyDelete
  7. It's acceptable to check this sort of site. I figure I would such a great amount from you.
    training provider in malaysia

    ReplyDelete
  8. Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
    Best Data Science Courses in Hyderabad

    ReplyDelete