1.PMD
PMD is a Java program code check tool released using the BSD Protocol. This tool can check whether Java code contains unused variables, empty blocks, and unnecessary objects. The software has powerful functions and high scanning efficiency. It is a good helper for Java programmers to debug. The following editors are supported by PMD: JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, and Ant,, Gel, JCreator, and Emacs.
2.FindBugs
FindBugs is an Eclipse plug-in tool that can analyze source code statically and may contain bugs. It can also analyze compiled programs. This tool has been downloaded for more than 0.7 million times.
3.JLint
Jlint can help you check Java code to find bugs, which may not necessarily cause synchronization problems. JLint runs very quickly. Even if your project is very large, it takes only a few seconds to check all the classes. Jlint has been successfully applied in commercial environments.
4.Checkstyle
Checkstyle is a tool used to help developers compile code that complies with coding standards. It is highly configurable and supports almost any encoding standard. It can also be used to help you discover class design problems, duplicate code, and problem code. This tool can be integrated with Ant.