Domanda di colloquio di Ford Motor Company

How does garbage collection differ in Java and C++?