Home > Java > JavaBase > body text

what are java features

coldplay.xixi
Release: 2023-01-13 00:39:48
Original
33563 people have browsed it

Java features: 1. Cross-platform; 2. Security; 3. Object-oriented; 4. Simplicity; 5. High performance; 6. Distributed; 7. Multi-threading, which can bring better Interactive response and real-time behavior; 8. Robustness.

what are java features

The operating environment of this tutorial: windows7 system, java10 version, DELL G3 computer. This method is suitable for all brands of computers.

java features:

1. Cross-platform/portability

This is the core advantage of Java. Java was designed with great emphasis on portability and cross-platform functionality. For example: Java's int is always 32 bits. Unlike C, it may be 16 or 32, which may vary according to the compiler manufacturer's regulations. In this case, the transplantation of the program will be very troublesome.

2. Security

Java is suitable for network/distributed environments. In order to achieve this goal, a lot of energy has been invested in security so that Java can It's easy to build virus-proof, tamper-proof systems.

3. Object-oriented

Object-oriented is a programming technology that is very suitable for the design and development of large-scale software. Since C is compatible with C in order to take care of a large number of C language users, it only becomes a C language with classes, which somewhat affects its object-oriented thoroughness!

Java is a completely object-oriented language.

4. Simplicity

Java is a simplified version of C syntax. We can also call Java "C -". Say "C plus plus minus" after me, which means removing some contents of C; such as: header files, pointer arithmetic, structures, unions, operator overloading, virtual base classes, etc.

At the same time, since the grammar is based on C language, it is completely effortless to learn.

5. High performance

In the initial development stage of Java, it was always criticized for "low performance"; objectively, the operating efficiency of high-level languages ​​is always lower than that of low-level languages. Yes, this cannot be avoided. In the development of the Java language itself, the operating efficiency has been improved dozens of times through the optimization of the virtual machine.

For example, JIT (JUST IN TIME) just-in-time compilation technology improves operating efficiency. Compile some "hot" bytecodes into native machine code, cache the results, and recall them when needed. In this way, the execution efficiency of Java programs is greatly improved, and some codes can even achieve the efficiency of C. Therefore, the short leg of Java's low performance has been completely solved. In terms of industry development, we have also seen that many C applications have been transferred to Java development, and many C programmers have transformed into Java programmers.

6. Distributed

Java is designed for the distributed environment of the Internet because it can handle the TCP/IP protocol. In fact, accessing a network resource through a URL is as simple as accessing a local file. Java also supports remote method invocation (RMI, Remote Method Invocation), which

enables programs to call methods through the network.

7. Multi-threading

The use of multi-threading can bring better interactive response and real-time behavior. The simplicity of Java multithreading is one of the main reasons why Java has become a mainstream server-side development language.

8. Robustness

Java is a robust language that absorbs the advantages of the C/C language, but removes the parts that affect the robustness of the program ( Such as: pointers, memory application and release, etc.). It is impossible for a Java program to cause a computer crash. Even Java programs can have bugs.

If something unexpected happens, the program will not crash. Instead, the exception will be thrown and processed through the exception handling mechanism.

Related free learning recommendations:
java basic tutorial

The above is the detailed content of what are java features. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!