--:--









Quiz for Memory Management & Garbage Collection

Course: JAVA | Subject: Java | Topic: Other Key Subjects



Logo

Q1: What is the purpose of garbage collection in Java?

Logo

Q2: Which part of memory is managed by the garbage collector?

Logo

Q3: Which method is used to suggest garbage collection in Java?

Logo

Q4: Which memory area stores method local variables?

Logo

Q5: What triggers garbage collection in Java?

Logo

Q6: Which algorithm is commonly used in Java garbage collection?

Logo

Q7: What does the finalize() method do?

Logo

Q8: What is the role of the JVM in memory management?

Logo

Q9: Which Java keyword makes a variable reference null?

Logo

Q10: Which area of memory holds class metadata in Java 8 and later?

Logo

Q11: Which command-line option sets the initial heap size in Java?

Logo

Q12: What is the result of a memory leak in Java?

Logo

Q13: Which type of reference is cleared only when memory is absolutely needed?

Logo

Q14: Which reference type is collected eagerly by GC?

Logo

Q15: How can circular references affect garbage collection?

Logo

Q16: Which GC is most suitable for large heap and low pause time?

Logo

Q17: Which JVM option is used to print GC logs?

Logo

Q18: Which JVM memory section is shared among threads?

Logo

Q19: What is the size limit of stack memory?

Logo

Q20: Which generation in heap memory stores newly created objects?

Are you ready to start test? Set your time limit