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
garbage collector implies that objects that are no longer needed by the program are "garbage" and can be thrown away.