Subject / 929 questions

Programming MCQs

Page 13 of Programming multiple-choice questions with answers. Tap an option to check yourself.

Page 13 of 47

Question 243 Java

When does a Java object become eligible for garbage collection?

Correct answer D. When no live thread can reach it through references

Open question
Advertisement
Question 244 Java

What is guaranteed when a Java program calls System.gc()?

Correct answer A. Only that it suggests the JVM should try to reclaim memory

Open question
Advertisement
Advertisement