Memory & GC Flashcards

1
Q

How is virtual heap space divided in Java

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What difference between float and BigDecimal? How they store the data?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Java object references

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is deep copy of a Java object

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Disadvantages of setting heap size too high

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are utilities for JVM monitoring? What is Jconsole?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to force GC be executed

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Garbage collection principles

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are memory leaks

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Are memory leaks a problem in Java

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is variable shadowing

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How would you monitor JVM

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How would you monitor how GC behaves during program execution

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Name few GC implementations (Serial, Parallel, ParallelOld, ConcarentMarkAndSweep) describe major differences

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Memory model in JVM (happens before, atomicity of memory reads and writes)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Perm Space vs Metadata space in Java 8

A
17
Q

What are G1 of C4 garbage collectors

A