No. You cannot kill a GC programmatically. The interviewer is expecting some answer like:
The garbage collection cannot be forced. The garbage collector runs in low memory situations. When it runs, it releases the memory allocated by an unreachable object. The garbage collector runs on a low priority daemon (background)
thread. You can nicely ask the garbage collector to collect garbage by calling System.gc() but you can�t force it.
Note: The only way you kill a GC is when you exit your application. System.exit();