Learn the records of the first chapter of Java, which mainly records the knowledge of the most basic parts of Java, understand the Java features and development environment and the advantages and disadvantages of the Java language.
The development of computer language probably process: machine language---> assembly language---> High-level language (process-oriented language and object-oriented language) in short, the more difficult to identify from human to human natural language close to make the code more readable.
Java Development process: 1991 Sun in order to seize the market opportunity, set up a project team called Green, Patrick, James Goslin , Mack Chelindan Working Group with several other engineers research and develop new technologies in a small studio in the Dunes Road of California State Menlo Park, developing an object-oriented language called Oak , which changed oak to Java in 1995 .
In January 1996, Sun released the first Java Development Kit (JDK 1.0), an important milestone in Java's evolution, marking Java as a standalone development tool. In September, about 83,000 Web pages were created using Java technology. In October, Sun released the first instant (JIT) compiler for the Java platform.
JDK 1.1 was launched in February 1997.
December 8, 1998, the second generation of the Java Platform Enterprise version of the EE published. In June 1999, Sun unveiled the 3 versions of the second-generation Java platform (JAVA2):j2me(mini-version of the JAVA2 Micro EDITION,JAVA2 platform) for mobile, wireless, and limited resource environments ; J2se (Standard edition of Java 2 Standards Edition,java 2 platform), for desktop environments, JavaEE(Enterprise Edition of 2Enterprise Edition,java 2 platform), Applies to Java-based application servers. The release of the Java 2 platform is one of the most important milestones in the Java development process, marking the beginning of the popularity of Java applications.
April 27, 1999, hotspot virtual Machine released. The hotspot virtual machine was released as an add-on to JDK 1.2, and later it became the default virtual machine for all versions of JDK 1.3 and later Sun JDK
September 24, 2001, j2ee1.3 released.
February 26, 2002, j2se1.4 released. Since then, Java has had a significant increase in computing power, with nearly 62% more classes and interfaces than j2se1.3. Among the new features are a wide range of XML support, Secure Sockets (socket) support (via SSL and TLS Protocol), new I/OAPI, regular expressions, logs and assertions.
September 30, 2004, j2se1.5 released as another milestone in the development of the Java language. To represent the importance of this release, J2SE 1.5 was renamed Java SE 5.0(build number 1.5.0), codenamed "Tiger", and Tiger contains the most significant updates since the release of the 1.0 release in 1996, including generic support, Basic types of auto-boxing, improved loops, enumeration types, formatted I/O, and mutable parameters.
In June 2005, at the Java One conference, Sun released the Java SE 6. At this point, the various versions of Java have been renamed, the number 2 is canceled, such as the name of the Javaee,j2se renamed to Javase,j2me renamed to Javame but also a large part of the people because of the customary reason still call it j2ee,j2se,j2me, Different names are the same things.
November 13, 2006, the inventor of Java technology, Sun, announced the release of Java technology as free software. The first source code for the Standard edition of the Java platform, as well as the executable source code for the Java Mini Edition, is officially released by Sun. Since March 2007, all developers around the world have been able to modify the Java source code.
In 2009, Oracle announced its acquisition of Sun. In 2010, James Goslin, one of the co-founders of the Java programming language, resigned from Oracle Corporation. In 2011, Oracle held a global event to celebrate the launch of Java7, which was followed by Java7 's official release.
In 2014, Oracle released the official version of JAVA8
The history of Java above is mainly from the Baidu Encyclopedia, stealing a lazy paste than typing Jingxiang is also fast, hey
Let's continue to understand Java.
Ava language features : cross-platform (portable), simple, secure, robust, fully object-oriented
JVM (Java Virtual machine): Java VM
The JVM is a specification. is a virtual computer that executes bytecodes bytecode.
Java Virtual machine is the core technology of Java, and also the foundation of cross-platform.
So how does Java implement cross-platform?
The first step is to compile the Java source program into a Java bytecode file (. Class) with the "compiler" (bytecode file in a structurally neutral intermediate file format)
The second part interprets the Java bytecode file as the corresponding machine language and runs through the interpreter.
is a simple Java run step
C language vs. Java cross-platform principle comparison:
Java is a compilation that executes everywhere (all running on a Java Virtual machine)
C language can be compiled more than once (compiler is required for different operating systems)
How do I start using Java for development?
1. Build the Java Development environment (install JDK, configure environment variables), and refer to my previous blog.
2. Java source Program (Test.java) Java source file must be the same as the public decorated class name, a Java source file can contain more than one class, but only a public decorated class.
Example:
Public class Test {//test is the class name, the public decorated class name must be the same as the file name, and Java is strictly case-sensitive. Public Static void Main (string[] args) { System.out.println ("hello\tworld!" );//Print out the contents in parentheses and wrap System.out.print ("Hello World again\t \n!" );//\t is an escape character, the effect and output a certain number of spaces the same, \ n is the role of newline, print without ln is not a newline System.out.print ("Hello World again!" ); }}
3. compilingJavasource program--àgenerate a byte-code filethe specific method (. Class) is:OpenDoswindow(win+r-à inputcmd)---àChange your directory to the directory where the source files are located--à inputJavac Test.java to compile
DOS command to change directory: 1. Enter the disk such as (F:) 2. If the root directory is placed in the direct compilation of the line, otherwise, after the root directory to enter the CD plus space plus a file name and then return to the line as (CD Javacode) specific methods can be Baidu or Google.
4. After compiling, if there is no error . run a bytecode file (Test.class) java Test ( the class name followed by the run- time java command)
Note: The compile time is the input javac space plus the full file name Test.java, while the runtime input is the Java space plus the class name test, do not add. java
learning Be sure to remember the Java
Jav The notes in a and the C language are roughly the same, not described in detail, // single-line comment /* multiline comment */ /** document comments */
Finally, the difference between JDK and JRE in Java, the JDK is the Java language Software Development Toolkit, the JDK is the core of the entire Java development, it contains the Java Runtime Environment (JRE), Java Tools and Java Foundation Class library. If you do not have a JDK, you cannot compile the Java program, and if you want to run only Java programs, make sure that the appropriate JRE is installed.
JRE (Java Runtime Environment,java Runtime Environment), a collection of environments necessary to run Java programs, including the JVM standard implementation and the Java Core Class library. If you just run a Java program, just install the JRE.
The following diagram should be able to clearly describe the relationship between them
The first chapter of the Java Learning record