This is from a Mock.
Which of the following statements are NOT true about
Java garbage collection
Thread?
A) The garbage collection thread has a low priority
B) The garbage collection thread can be invoked at any time
c) A call to System.gc() is guaranteed to invoke garbage collection thread immediately
d) A call to Runtime.getRuntime().gc() is guaranteed to invoke garbage collection thread immediately
The correct answers are B, C, D.
I think the answer should be C,D.
We can invoke the GC thread any time using System.gc(). Am I wrong?