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.


  1. Its very useful to me. Wonderful blog.. Thanks for sharing informative Post.

    Installment loans
    Payday loans
    Title loans

  2. This is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
    Language Translation Services ,
    Subtitling Companies in Bangalore


  3. Most companies use telephone interviews as part of their
    recruitment process to whittle down a pile of CVs into a
    manageable interview shortlist. Visit

  4. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

  5. myTectra Placement Portal is a Web based portal brings Potentials Employers and myTectra Candidates on a common platform for placement assistance

  6. 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

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

  8. 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

  9. Very good information. Its very useful for me. We need learn from real time examples and for this we choose good training institute, we need to learn from experts . So we make use of demo classes . Recently we tried java demo class of Apponix Technologies.