c/c++ can deal with something called pointer this pointer can make you add any thing to any place at RAM or memory , Java can't make that and thats not problem but java can work at any machine on the earth
The2 biggest company on the earth are Oracle and MS one of them make java (SUN prev) and the other made C# ( c++ but with another face )