Java and c++