Walmart Interview Question

difference between java and C++