Java and c++ Hello World