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
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!