Ford Motor Company Interview Question

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