[adsenseyu2] Before going over some of top static code analysis tools for Java, lets quickly look at why do we…