Java Basics Combing--Picking up flowers (i.)

Source: Internet
Author: User

Introduction :

Java is an object-oriented language for writing cross-platform applications, launched by Sun Microsystems in 1995. Oracle's $7.4 billion acquisition of sun in April 20, 2009 made copyright in Java. July 28, 2011, Oracle released the official version of java7.0. March 19, 2014, Oracle releases the official version of java8.0.

Java Components :

(1) Java programming language

(2) Java file format

(3) Java Virtual machine (JVM)

(4) Java Application Interface (Java API)

When you edit and run a Java program, you need to involve these four aspects at the same time. Use text-editing software (such as notepad , WordPad ,UltraEdit , and so on) or an integrated development environment ( Eclipse , MyEclipse, etc.) define different classes in the Java source file, access the resource system by invoking the methods in the class (these classes implement the Java API) , generate a binary intermediate code from the source file compilation, and store in the class file, Then run the class file by running the Java virtual machine that corresponds to the operating system platform environment, execute the bytecode generated by the compilation, and invoke the method implemented in the class file to satisfy the Java API Call of the program.

The process is as follows: java-source file (*.java file)->java compiler (Javac.exe executable, execute Javac command), byte-code file (post-compilation file, *.class file)--(class loader + bytecode checker)- > parser (parsed into the operating system Knowledge 2 encoding format), operating system execution;

The Java2 platform includes :

Three versions of Standard Edition (J2SE), Enterprise Edition (Java ee), and Miniature edition (J2ME).

The Java 2 Enterprise Edition is a Java Business Edition for enterprise-Class application service development (for Java Enterprise Application development).

J2SE is the Java 2 Standard Edition for standard application development (for Java Desktop application development);

J2ME is Java 2 Micro Edition is a miniature version of Java, often used in small electronic devices such as mobile phone development, embedded development and so on.

J2ee,j2se,j2me is Java for different uses to provide different services, that is, to provide different types of class libraries.

Java Runtime Environment:

The Java platform consists of two parts: one is the Java Virtual Machine JVM, the other is Java application programming Interface (Java API), or Java application design interface , the two parts of the software constitute the basic environment of Java operation. The Java API is a large, well-established set of software that has many of the controls needed for development to assist in development. The Java API and JVM are consolidated on top of the machine hardware.

Java language Features:

1) Object-oriented:
Any entity in the real world can be seen as an object. In the Java language, it is also the concept, that is, to treat everything as an object, that is, a comparison of the concept of the pan-China or appellation;
2) Portability:
A compiled Java program or file can be copied, copied to another system or application, can also be interpreted to achieve the purpose of reuse, that is, the Java language has this portability and reusability;
3) Cross-platform:
At present, the operating system has windows, UNIX, Mac os,linux, etc., the Java language can be run on different systems or platforms, including Java embedded, all show that it has a good cross-platform;
3) Security:
1, Garbage collection,garbage collector will make your program not prone to memory leaks. GC garbage collection mechanism that automatically frees up application-level system memory that is no longer used for long periods of time;
2, exception, the program appears exception when the programmer can let the program stop running, so that the hacker will not be hacked.
3, pointers, there is no pointer in Java. C is very dangerous, hackers can let C's program stack Overflow, and then in the overflow memory address jump to a place that should not jump.
4) Concurrency:
There is a thread class in Java, which provides the concurrency mechanism of multithreading;

Java Basics Combing--Picking up flowers (i.)

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.