Plus, your better served by working on better algorithms. And at any rate, poorly written C++ or C code can run fairly slowly (e.g. if you bog down the system with large memory leaks, you probably would've done better to write it in Java).

I know competitions like USACO which have maximum allowable running times make allowances for difference by giving Java programs a little more time.