Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (45k points)

A. Java deletes all unused java files on the system.

B. Memory used by the object with no reference is automatically reclaimed.

C. The JVM cleans output of Java program with an error.

D. Any unused package in a program automatically gets deleted.

1 Answer

0 votes
by (99k points)

The correct answer to the question “What is Garbage Collection in the context of Java” is option B; Memory used by the object with no reference is automatically reclaimed. Since Garbage Collection (GC) is a process of eliminating those objects which are no more in usage and thereby help with the memory management to optimize the performance of the programming language. If you wish to learn Java and become a certified professional in it, the best way for that is to enroll in a good Java course. Also, have a look at our free YouTube video on Java Tutorial.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 17, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...