Frage im Vorstellungsgespräch bei Ford Motor Company

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