During a code review, you discover many quality issues. Many modules contain unused variables and empty catch blocks. You need to recommend a solution to improve the quality of the code. What should you recommend?
A.
In a Grunt build task, select Enabled from Control Options.
B.
In a Maven build task, select Run PMD.
C.
In a Xcode build task, select Use xcpretty from Advanced.
PMD: (Programming Mistake Detector) is a static code analysis tool specifically designed for Java. It excels at identifying common code quality issues, including unused variables, empty catch blocks, and other potential problems.
B is the answer.
https://pmd.github.io/
PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth.
This section is not available anymore. Please use the main Exam Page.AZ-400 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
AS007
Highly Voted 4 years, 6 months agoJkmr622
Highly Voted 3 years, 11 months agoFeriAZ
Most Recent 9 months agoSukon_Desknot
1 year, 4 months agozellck
1 year, 6 months agotjeerd
2 years, 4 months agoGovcomm
2 years, 4 months agoLeandrocei
2 years, 4 months agoUnknowMan
2 years, 7 months agordemontis
2 years, 8 months agoOptimist_Indian
2 years, 10 months agofrancis6170
3 years, 5 months agokumardeb
4 years agoRimbik
4 years, 2 months ago