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 ");
}
}