Which tool is used for static code analysis?

Which tool is used for static code analysis?

Static Code Analysis is a method of analyzing the source code of programs without running them. It can discover formatting problems, null pointer dereferencing, and other simple scenarios.

There are tools like SonarCube,DeepScan, woth their own plus and drawbacks. Among java developer . Now most of the popular IDE have Code analysis plugins, Eclipse and IntelliJ can include PMD . Here are more tols introduction