Programming - Garbage Collections
You Are Here :: Home > JAVA > Garbage Collections - Jdbc
7.
The copying algorithm uses a heap divided into halves called ________________
A.
semi-spaces
B.
spaces
C.
logarithms
D.
solutions
Answer: Option A
Explanation:
The copying algorithm uses a heap divided into halves called semi-spaces
8.
If you want to make your object eligible for Garbage Collection , assign its reference variable to __________________.
A.
zero
B.
one
C.
both a and b
D.
null
Answer: Option D
Explanation:
If you want to make your object eligible for Garbage Collection , assign its reference variable to null.
9.
Primitive types are not objects. They cannot be assigned _____________________.
A.
zero
B.
one
C.
both a and b
D.
null
Answer: Option D
Explanation:
Primitive types are not objects. They cannot be assigned null.
10.
In Java,__________________________ happens automatically during the lifetime of a java program, eliminating the need to de-allocate memory and avoiding memory leaks.
A.
Garbage Collection
B.
Heap Area
C.
Static methods
D.
Struts
Answer: Option A
Explanation:
In Java,Garbage collection happens automatically during the lifetime of a java program, eliminating the need to de-allocate memory and avoiding memory leaks.
11.
All objects are created in __________ Section of memory.
A.
Heap
B.
Stack
C.
both a and b
D.
none
Answer: Option A
Explanation:
All objects are created in Heap Section of memory.
« prev