...
OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024

OOPS

Question 115
What is garbage collection in the context of java?
A
The java virtual machine(JVM) checks the output of any java program and deletes anything that does not make sense at all
B
The operating system periodically deletes all of the java files available on the system
C
Any java packages imported in a program and not being used, is automatically deleted
D
When all references to an object are going, then the memory used by the object is automatically reclaimed
Question 115 Explanation: 
Garbage collection is happened when all references to an object are going, then the memory used by the object is automatically reclaimed
Correct Answer: D
Question 115 Explanation: 
Garbage collection is happened when all references to an object are going, then the memory used by the object is automatically reclaimed

Leave a Reply

Your email address will not be published. Required fields are marked *