Courseiva
What is JavahardMultiple ChoiceObjective-mapped

1Z0-811 What is Java Practice Question

Exhibit

Refer to the exhibit.
```
java -Xms512m -Xmx2g -XX:+UseG1GC -jar application.jar
```

Based on the command, which garbage collector is configured for this application?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Garbage-First (G1GC)

XX:+UseG1GC explicitly sets the Garbage-First (G1GC) garbage collector. Option A is incorrect; Parallel GC would be enabled with -XX:+UseParallelGC. Option C is incorrect; Serial GC would be enabled with -XX:+UseSerialGC. Option D is incorrect; CMS would be enabled with -XX:+UseConcMarkSweepGC.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Parallel GC

    Why it's wrong here

    Parallel GC is not enabled by this flag.

  • Garbage-First (G1GC)

    Why this is correct

    The flag -XX:+UseG1GC enables G1GC.

  • Serial GC

    Why it's wrong here

    Serial GC requires -XX:+UseSerialGC.

  • Concurrent Mark Sweep (CMS)

    Why it's wrong here

    CMS would use a different flag.

About these practice questions

Courseiva writes every 1Z0-811 question from scratch — 481 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 1Z0-811 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-811 exam.