Home  >  Article  >  Java  >  What is the grammatical difference between c language and java?

What is the grammatical difference between c language and java?

青灯夜游
青灯夜游Original
2019-11-19 16:19:053462browse

What is the grammatical difference between c language and java?

The syntax difference between c language and java

The compilation time of a single file java is faster than C language;

C language You can directly operate the memory, but java cannot directly operate it;

C language can encapsulate dynamic libraries, but java cannot;

C language code is not easy to cross-platform, and java code is easy to cross-platform;

C language has pointers, java does not have pointers;

C language can directly operate the serial port, java requires third-party jar package support;

C language threads are more flexible, and java threads All have been encapsulated;

The identifiers available in C are numbers, uppercase and lowercase letters, and underscores, and cannot start with a number; in addition to the three types of identifiers available in Java, there is one more dollar sign ($ ), also cannot start with a number.

C language can be used for independent functions, which can increase efficiency, and java is suitable for web application development;

unix is ​​written in C language, and java is also written in C language;

JAVA When doing web development, there are already many established framework technologies, there is very little C language, and it needs to deal with underlying content, which is very difficult for developers who are not familiar with computer principles;

There are too many open source packages for JAVA , C language also exists but it is less, and there are not as many frameworks for certain business application fields as java;

Recommended tutorial: Java tutorial

The above is the detailed content of What is the grammatical difference between c language and java?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn