RTX Interview Question

Why is there a preference to using C or C++ vs Java in RT systems?