Java is more suitable than a language. Every class in Java has a class file corresponding to it. When the program starts, Java loads the classes required for running the program to the virtual machine, connection (dynamic connection) is performed according to Java Virtual Machine specifications, and program assembly is completed during running. Therefore, Java programs are very easy to develop components, and program components are very easy to replace.
C is similar to other compiled languages, and its program assembly method is a traditional assembly method. C generates binary code for a certain platform during compilation, finds the library to be called during connection, and then connects the code in these libraries into the executable program, the generated executable program runs very fast, but the executable code has become a whole and cannot be separated. (Without considering dynamic links)
C can also be developed in the form of components, such as COM, but those are based on dynamic link libraries and cannot be cross-platform. COM actually defines a binary component standard. Is not cross-platform.