I am preaparing for scjp
exam .In one of the Mocks i found this question.Can anyone help me in explaining this question.
Q.Which statements about Garbage Collection are true?
1.You can directly free the memory allocated by an object.
2.You can directly run the garbage Collection whenever you want.
3.The Garbage Collector informs your object when it is about to be garbage Collected.
4.Garbage Collector runs in low memory situation.
The answer given is 3 &4.I dont understand the meaning of 3rd option and also i feel 2nd option is correct because we can run garbage collection by calling Sytem.gc() method.
Can anyone please help me in this