Which is a common Java memory leak pattern?

Practice this question from Quiz: Memory Management, with options and an explanation.

Question

Which is a common Java memory leak pattern?

Option A — Correct answer

A static collection that keeps references forever

Reachable references prevent GC even when objects are no longer logically needed.

Option B

Using int variables

Option C

Calling equals

Option D

Declaring a method

Quiz: Memory Management

All questions · Previous question · Next question

Open on QuizMaker