JAVA basics (1) JAVA language history and advantages and disadvantages

After studying and sorting it out for a period of time, publishing it is equivalent to a new learning memory

From JAVA:

Java is an object-oriented design language launched by 1995sum company, acquired by oracle in 2010, and has been maintained by oracle since then

The latest java version in 2019 to 13

 

table of Contents

JAVASE

JAVAEE

JAVAME

9 major features of JAVA language

 


JAVASE

 JAVASE (JAVA Platform Standard Edition, JAVA Platform Standard Edition) referred to as J2SE,

Applied to desktop, server, embedded, real-time environments, including classes for java web service development

JAVAEE

JAVAEE (JAVA Platform Enterprise Edition, Java Platform Enterprise Edition) J2EE

Built on the basis of early J2SE, it provides Web services, component models, management and communication APIs.

It can be used to implement enterprise-level service-oriented architecture (Service Oriented Architecture, SOA) and Web 2.0 applications.

JAVA-WEB development based on J2EE

JAVAME

JAVAME (JAVA Platform micro Edition, Java Platform micro Edition) referred to as J2ME, mainly used for embedded development

 

9 major features of JAVA language

1. Object-oriented

Java is an object-oriented language.

It has good support for classes, objects, inheritance, encapsulation, polymorphism, interfaces, packages, etc. in objects.

For simplicity, Java only supports single inheritance between classes,

But you can use interfaces to implement multiple inheritance.

Use the Java language to develop programs,

Need to adopt object-oriented thinking to design programs and write codes

2. Platform independence

The main performance of platform independence (write once, run everywhere),

No need to recompile on other platforms, just download the Java virtual machine mechanism (jdk), you can run directly

The Java language uses the Java virtual machine mechanism to shield the relevant information of the specific platform, so that the program compiled by the Java language only needs to generate the target code on the virtual machine, and it can run on multiple platforms without modification.

3. Simplicity

The java language is similar to C++\C# code,

And no pointers are used,

Or use the garbage collection mechanism to better manage memory problems

Simpler development

4. Interpretation and execution

Java programs will be compiled into bytecode files when running on the Java virtual machine.

During the execution process, the classes that need to be added are loaded into the runtime environment during the connection phase

5. Multithreading

Java is multi-threaded, created by the Thread class and subclasses,

Supports simultaneous execution of multiple threads and provides a synchronization mechanism

Any thread has its own run() method, and the content that needs to be executed needs to be written in the run() method

6. Distributed

Java language supports the development of Internet applications,

There is a web application programming interface in Java's basic application programming interface, which provides a class library for web application programming

, Including URL, URLConnection, Socket, etc.

The RIM mechanism of Java is also an important means of developing distributed applications.

7. Robustness

Robustness is manifested in the garbage collection mechanism, strong typing mechanism, and exception handling to ensure the language.

The discarding of pointers is a big step forward for Java. In addition, Java's exception mechanism is also a major manifestation of robustness.

8. High performance

High performance is relative to other languages.

, With the development of JIT (Just in Time), the running speed of Java is getting higher and higher.

9. Security

Java is usually used in a network environment. For this reason,

Java provides a security mechanism to prevent malicious code attacks.

In addition to the many security features of the Java language,

Java also adds a security precaution mechanism to classes downloaded through the network.

Allocate different namespaces to prevent replacing local classes with the same name,

And includes safety management mechanism.

 

Reference website:

http://c.biancheng.net/view/1282.html 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_37203082/article/details/102515885