If there are two programmers who are equally good, but one knows Java and the other knows C++, Google would hire both. Really. But, does Google prefer, on the margin, C++ over Java? Not really. Java is actually easier in some ways in that you won’t have to worry about memory management and pointers in an interview. On the other hand, you’re also unlikely to understand computer architecture as well if you don’t know C++.