51.6k views
0 votes
InJava garbage collection is done by_______________JVM (Java VirtualMachine)ProgrammerBoth JVM (Java Virtual Machine)and ProgrammerOS (Operating System)None of given

1 Answer

3 votes

Answer: Java Virtual Machine(JVM)

Explanation: In java,there is the process of the management of the memory by own self or automation , this is known as the garbage collection .The program in it compile to be executed by the java virtual machine(JVM).During this process , object get together in a sort of heap and then unnecessary object are detected which are of no use and delete them to make space for the memory . Therefore, garbage collection is carried out by java virtual machine(JVM).

User Tim Rijavec
by
8.3k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.