Memory & GC Flashcards
How is virtual heap space divided in Java
What difference between float and BigDecimal? How they store the data?
Java object references
What is deep copy of a Java object
Disadvantages of setting heap size too high
What are utilities for JVM monitoring? What is Jconsole?
How to force GC be executed
Garbage collection principles
What are memory leaks
Are memory leaks a problem in Java
What is variable shadowing
How would you monitor JVM
How would you monitor how GC behaves during program execution
Name few GC implementations (Serial, Parallel, ParallelOld, ConcarentMarkAndSweep) describe major differences
Memory model in JVM (happens before, atomicity of memory reads and writes)
Perm Space vs Metadata space in Java 8
What are G1 of C4 garbage collectors