What is the garbage collector in Java?

前端 未结 16 1188
故里飘歌
故里飘歌 2020-11-22 11:24

I am new to Java and confused about the garbage collector in Java. What does it actually do and when does it comes into action. Please describe some of the properties of the

16条回答
  •  独厮守ぢ
    2020-11-22 12:07

    Garbage collector is a component of jvm.

    It is used to collect garbage when ever cpu gets free.

    Here garbage means unused objects it runs in Background of main program

    to monitor the status of the main program.

提交回复
热议问题