During a code review, you discover quality issues in a Java application.
You need to recommend a solution to detect quality issues including unused variables and empty catch blocks.
What should you recommend?
Suggested Answer: B
Get Premium AZ-400 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
13 comments · newest first
CE
Cecil
12 months ago
D sounds interesting, but does it really work for detecting unused variables?
MA
Marisha
1 year ago
C doesn't even apply to Java, right?
NO
Norah
1 year ago
Surprised that people still overlook PMD for Java!
GL
Glenn
1 year ago
I disagree, A won't help with Java quality checks.
SH
Shonda
1 year ago
B is the way to go! PMD is great for catching those issues.
RO
Rosalia
1 year ago
I don't recall all the build tools, but I think Grunt and Gulp are more for JavaScript. Could it really be B?
BR
Brittni
1 year ago
I feel like we practiced a similar question, and PMD was definitely mentioned as a solution for Java applications.
DA
Daniela
1 year ago
I'm not entirely sure, but I remember something about using build tasks to check for unused variables. Was it Maven or something else?
AR
Ardella
1 year ago
I think PMD is the tool we learned about for detecting code quality issues in Java. It might be option B?
WE
Wenona
1 year ago
Hmm, I'm a bit unsure about this one. The options seem pretty similar, and I'm not entirely sure what the key differences are between them. I'll need to re-read the question and think it through step-by-step.
KA
Karan
1 year ago
Hmm, this is a tricky one. I'd want to test on a device that represents the majority of iOS users, so I'm thinking iPhone 7 might be the best option.
JO
Jolanda
1 year ago
Hmm, I'm a bit unsure about this one. I know location data can be used for things like language preferences and device detection, but I'm not totally sure which of these options is the best fit.
KA
Kassandra
1 year ago
I think the first step is to figure out how much Longview covers above that $2,600,000 threshold, but it feels tricky to get to the final number!