Difference: 1. The compilation time of a single file is faster than that of C language; 2. C language can directly operate memory, but java cannot directly operate; 3. C language can encapsulate dynamic libraries, but java cannot; 4. C The language has pointers, but Java does not have pointers; 5. C language can directly operate the serial port, while Java requires third-party jar package support, etc.
This article mainly introduces the difference between c language and java. I hope it will be helpful to friends in need!
The difference between c language and java:
1. Different syntax;
2. The compilation time of a single file is faster than C language;
3. C language can directly operate memory, but java cannot directly operate it;
4. C language can encapsulate dynamic libraries, but java cannot;
5. C language code cannot Easy to cross-platform, java code is easy to cross-platform;
6. C language has pointers, java does not have pointers;
7. C language can directly operate the serial port, java needs third-party jar package support ;
8. C language threads are more flexible, and Java threads have been encapsulated;
9. C language can increase efficiency by doing separate functions, and Java is suitable for web application development;
10. Unix is written in C language, and Java is also written in C language;
11. When JAVA is used for web development, there are already many established framework technologies, and there is very little C language. And it needs to deal with the underlying content, which is very difficult for developers who are not familiar with computer principles;
12. There are too many open source packages for JAVA, and there is also C language but less, and it is a framework for a certain business application field. Not as much as java;
Related recommendations: "Java Tutorial" "C Tutorial"
The above is the detailed content of What is the difference between c language and java. For more information, please follow other related articles on the PHP Chinese website!