Introduction to Java

Source: Internet
Author: User

 

 

1 Java language Overview

 

A 3gl language for the Internet launched by Sun (Standford University Network, Stanford University Network company) in 1995. As Java continues to mature in the Web field, it is already the first language to be developed for Web applications.

Summary process:

 

 

2. Three technical architectures of Java

 

① Javase: used to develop some desktop applications. It is the foundation of the other two.
② Javaee: mainly for Web application development, including servlet, JSP and other technologies
③ Javame: used for electronic consumption products and embedded development

 

3 cross-platform: one compilation and running everywhere

 

 

 

4. JRE and JDK

 

① JRE: contains the core class libraries required by JVM and Java programs. If you want to run a developed Java source program, you only need to have JRE.
② JDK: Includes JRE and Java development tools. Therefore, after JDK is installed, you do not need to install JRE independently. Among them, the compilation tool: javac.exe packaging tool: jar.exe
③ JVM, JRE, and JDK
④ In short, use the. Class file developed by JDK to run it with JRE.

 

5 Java environment variable configuration skills

 

A) Place the variable volume in java_home = E: \ jdk1.6.0 _ 24
B) Place jaba_home on the front end of path and separate it with semicolons (;).
C) Finally, use double % to enclose it and Dynamically Retrieve % java_home % \ bin
Note: JVM calls *. Java executable programs and needs to be addressed according to classpath. If the compilation and execution are in the same directory, you do not need to set classpath.

 

6 Hello World applets

 

Think. Java -- Java source code
Think. Class -- Java executable program
Example:
E: \ java01> javac think. Java

E: \ java01> JAVA think
Hello World

Appendix: Think. Java source code is as follows:
Class think
{
Public static void main (string [] ARGs)
{
System. Out. println ("Hello World ");
}
}

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.