Java SE 11 Developer (1Z0-819) — Question 99

Your organization provides a cloud server to your customer to run their Java code. You are reviewing the changes for the next release and you see this change in one of the config files:

old: JAVA_OPTS="$JAVA_OPTS -Xms8g -Xmx8g"
new: JAVA_OPTS="$JAVA_OPTS -Xms8g -Xmx8g -noverify"

Which is correct?

Answer options

Correct answer: D

Explanation

The correct answer is D because using the -noverify option disables certain verification checks, which can leave the application vulnerable to security risks. Options A and C are incorrect as -noverify is not necessary for the latest Java version and is not a standard option. Option B is also wrong because the memory usage indicated by -Xms8g -Xmx8g may be appropriate depending on the application's requirements.