Characteristics and analysis of Java language

Source: Internet
Author: User

Characteristics and analysis of Java language


Java is an object-oriented programming language.

(the Java language, represented as a static object-oriented programming language, implements an object-oriented theory that allows programmers to do complex programming in an elegant way of thinking.) )

Java has the characteristics of simplicity, object-oriented, distribution, robustness, security, platform independence and portability , multi-threading, and dynamic. Ja VA can write desktop applications, Web applications, distributed systems, and embedded system applications .


These features of the Java language embody the following features of Java:

    • Ability to get started quickly

    • Less program code is written

    • Write a good program code

    • Faster development Programs

    • Use pure Java to avoid platform dependencies

    • Compile once, execute everywhere


1. Simplicity

People want to build a language that can be programmed without the need for deep professional training and conform to today's standard practices. As a result, although C + + is found to be less applicable, Java is designed to be as close to C + + as possible to make the system easier to understand. Java rejects many features that are seldom used, incomprehensible, and confusing in C + +. Indeed, Java syntax is a "pure" version of the C + + syntax.

The other aspect of simplicity is small. One of the goals of Java is to support the development of software that can run independently on small machines. At the time, it was a remarkable accomplishment. Of course, because of the continuous development, the class library has been quite large. There is now a separate Java mini-version (Java Micro Edition) with a smaller class library for embedded devices.


2. Object-oriented

In a nutshell, object-oriented design is a programming technique . It focuses on the data (that is, the object) and on the interface of the object . With a carpenter, for example, an "object-oriented" Carpenter always focuses on the chair being made and the second is the tool used; a "non-object-oriented" Carpenter first considers the tools used. The Java language is an object-oriented language .


3. Distribution

Java is a network-oriented language. It provides a class library to handle the TCP/IP protocol that allows users to easily access other objects on the network via a URL address. Java's network capabilities are powerful and easy to use. Anyone who uses a different language for network programming will exclaim that Java is making such a heavy task like opening a socket connection so simple.


4. Robustness

This feature is very useful. The Java language detects many problems that can be detected only at run time in other languages . For example, memory leaks in C/s + + can never happen in Java, and Java is definitely safe.


5. Security

From the outset,Java was designed to protect against various attacks , including:

run-time stack overflow . such as worms and other viruses commonly used attack means.

Destroys memory outside of its own processing space.

read and write files without authorization .

Many security features continue to be added to Java in succession. Since the advent of Java, Java has been the concept of a digital signature class. By using a digitally signed class, you can determine the author of a class. If you trust the author of this class, the class can have more permissions on the machine.


6. Platform Independence

The Java interpreter generates architecture-independent bytecode directives that Java programs can run on any processor as long as the Java Runtime system is installed. These bytecode directives correspond to the representations in the Java Virtual machine, and the Java interpreter gets the bytecode and converts it to run on a different platform.


7. Portability

Unlike other languages, there is no "dependency-specific implementation" in the Java specification . The size of the base data type and the algorithms are clearly explained . For example, in Java, an int is always a 32-bit integer, whereas in C + +, an int may be a 16-bit integer, a 32-bit integer, or another size that may be specified. in Java, the data type has a fixed size , which eliminates the major headache of code porting. Java implements porting issues on Windows, Mac OS, Linux platforms, and free migration without the need to modify the code.


8. Multithreading

Multithreading enables applications to execute in parallel, and the synchronization mechanism guarantees the correct operation of shared data. By using multi-threading, programmers can use different threads to accomplish specific behaviors, instead of having to adopt the global event loop mechanism, which makes it easy to implement real-time interactive behavior on the network.


9. Dynamic Nature

The Java design makes it suitable for an evolving environment. New methods and instance variables can be freely added to the class library without affecting the execution of the user program. and Java uses interfaces to support multiple inheritance, making it more flexible and extensible than strict class inheritance.


Java, in addition to the above features, there are many other features, here do not repeat.

Characteristics and analysis of Java language

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.