Ford Motor Company interview question

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