RTX interview question

why c++ is faster than java?