This answer is quoted from ChatGPT
This may be because the compiler and runtime environment of c and java are different. The compiler and runtime environment of c may be more complex than that of java, resulting in less efficient execution of c than java. In addition, the programming styles of c and java may differ, which may also affect the efficiency of c's execution.