Where does JAVA start

Source: Internet
Author: User
Tags jboss

to Figure outJavawhat it was that had to be fromJavaThe birth begins, as we intend to meet a person, and will ask where the person was born,SunCompany in1991years to set up aGreen, specializing in embedded applications of computers in home appliance products,C++language is too complex and large, in addition to the use of consumer electronics products embedded processor chip variety, how to write programsCross-platformrunning is also a challenge, remember the cross-platform three words, which determines theJavagenes, are inherently cross-platform, in order to solve difficulties, they first focus on language development (cattle are cattle, the development of language is not appropriate to develop a language directly first),1992years of Summer,Oaklanguage Development Success, this isJavapredecessor, this guy who was born later than I was, after more than 20 years of development, has become the world's most popular development language, but also formed its own uniqueJavaTechnical System.

First, The Java architecture includes four independent but related technologies

Java programming Language: The language of development that we most often refer to

Java class file format: All Java Language-developed code will be compiled into a . class file

Java API: Some pre-defined functions of Java

Java VM:The core of Java, because all Java Code is running on a Java virtual machine

through the above understanding, we knowJavaThe general structure, thatJavaHow is the language being run? WithJavalanguage compiled source code, compiled intoJava Classfile, and then inJava VMSRun inClassfile, when you write a program, by calling the class(Java API)While the program is running, it accesses the system resource by calling theClassfile that implements theJava APIthe method also satisfies the program'sJava APIcalled. Java VMSand theJava APItogether make up a "platform", allJavaprograms are compiled and run on them, so they are sometimes referred to asJavarun-time environment.

The main task is to load class file and execute the bytecode in it. Java vm contains a class loader (class loader) api load class file; Java Api

Java bytecode is executed by the execution engine. In different Java VMs , implementations of their execution engines may vary. The simplest execution engine is not a one-time explanation of bytecode, while another execution engine called an "instant compiler (just-in-time compiler)" executes faster, but consumes more memory resources. In real-time compilation mode, the first byte code executed is compiled and cached for "reuse" by the machine code.

As the saying goes, a good picture is worth 10 words, no picture, no truth.

650) this.width=650; "src=" Http://www.178linux.com/ueditor/php/upload/image/20170210/1486656719504338.jpg "title= "1486656719504338.jpg" alt= "JVM runs. jpg" style= "height:auto;vertical-align:middle;border:0px;"/>


is that the workflow of a Java Virtual machine is the class file of the loader loader in the JVM and the class file of the Java API into the execution engine. The class file that is executed by the execution engine to execute these loaded programs, and the Java API class file,

650) this.width=650; "src=" Http://www.178linux.com/ueditor/php/upload/image/20170210/1486656759795478.jpg "title= "1486656759795478.jpg" alt= "Java Run process. jpg" style= "height:auto;vertical-align:middle;border:0px;"/>

is a specific ways to work with JVM virtual machines

I see. The architecture of Java technology, the reason why Java is so popular, is also related to its innate characteristics, pure object-oriented, multi-threading, structured error handling, garbage collection, dynamic linking, dynamic expansion,

1998 ,Sun spun out Java technology into three directions:

J2se:standard Edition

EE:Enterprise Edition

J2ME:Mobile Edition

2006years,SunOpen source.JavaTo follow the technology;Gpland established aOpenJDKThe organization manages this code;Jdkjust provided theJ2sethe standard implementation, can achieveCSchema Development Program, but if you want to provide content presentation in a Web page format,b/Ssite architecture mode, you must be able to output aHtmlLabel'sJavacode, for ease of development,SunThe company defines a specification thatServlet, but alsoJavaa proprietary class that the application can use toHTTP,Cgiformat to receive requests from users, and to understandHTTP,Cgion the basis of the request, you can also buildHTTP,CgiResponse message to the client, while theServletask the programmer to writeServletcode, you must use a hard-coded mechanism toHtmlare hard-coded inJavarequires programmers to understandJavacode, and the east front.Htmlstyle design, which undoubtedly brought a lot of difficulties to the programmer, so there is a split designJsp, the same is theJavaa special class, soHtmlit can be embeddedJavaprogram, there is a callJasperthe translation officer toJsptranslated intoServletcode, which is alsoJavaCode

650) this.width=650; "src=" Http://www.178linux.com/ueditor/php/upload/image/20170210/1486656793497583.jpg "title= "1486656793497583.jpg" alt= "jdk.jpg" style= "height:auto;vertical-align:middle;border:0px;"/>

that is The functionality provided by the JDK is the Java Development language, and the next layer is the Java SDK and Java API, all the whileup to the bottom java Virtual machine also Java virtual machine,Java can cross sloaris,Windows,Linux and other platforms, relying on the Java virtual machine to achieve.

Sunthe company created the firstServletcontainer, i.e.Java Web Server,butJWSjust to demonstrateServletthe corresponding function, so it is very unstable. Meanwhile,Asfcreated aJservproject, an ability to work withApacheIntegration ofServletcontainer. 1999years,SunputJWSdonated to theAsf, so two projects were merged into one, todayTomcatthe predecessor. First oneTomcatversion isTomcat 3.xseries, and released in2001yearsTomcat4.0was redesigned and implemented on a previous basis, and its code project was namedCatalina. Tomcatnot a complete sense ofJ2eeserver, and it doesn't even provide for even a majorJava EE APIimplementations, such asEjb,Jms,Jmx,JavaMailand so on, but due to complianceApacheOpen Source Agreement,Tomcatbut also for the numerousJavaApplication server embedded in its own product to build a commercialJavaapplication servers, such asJbossand theJOnAS.

despiteTomcattheJave EE APIis not complete, but the enterprise is also gradually abandoning the use of traditionalJ2eetechnology, such asEjbinstead, use some open source components to build complex applications. AsStructs,Springand theHibernate, whileTomcatThe ability to achieve perfect support for these components. This isTomcatmore popular reasons, of course, in addition to open source project implementation, there are many business implementations, such asIbmof theWebsphere,Oracleacquisition ofWeblogic,Glassfish, beingRedhatacquisition ofJboss


Where does JAVA start

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.