2011年12月22日星期四

第5天第1节: JAVA课程简介与配置

Java SE 基础部分
1. 面向对象概念
2. 类集
3. I/O
4. JDBC

==简介:
SUN: Stanford University Network started in 1982
Java : C++ => Oak => Applet on HotJava browser (Outdated) => Java 1.0 at 1995 : JDK 1.0 by Gosling => Java 2, JDK 1.2
       
Microsoft .Net J# rewrite Java low level API => Sun sues Microsoft and win => Windows XP doens't support Java => Sun sues Mircosoft and win => Microsoft switch J# to C# ( Syntax of Java and C# is 90% compatable ) => Microsoft uses ASP.NET + C#

Adobe has Flex + Microsoft has .NET => Oracle acquires Java

In 2005.
    Java rename to Java SE ( dying) ,
    Java EE ( thriving ) , JSP, Sererlet, EJB...
    Java ME for phone game ( unsure ).
 
==Java Features:
1. Potability
2. Auto Garbage Cleaning
3. Support Multi-threading
4. No Pointer, has reference
5. Support Distributed Programming: RMI
6. Object Oriented ( first one is smalltalk from IBM)
7. Secure ( because using JVM )

 Hello.java =>(javac)=>Hello.class=> (java JVM)=>"Hello"

==Current Java
Currently JDK 1.6 ( Java SE 6.0) : JDK 1.5 is the best because JDK 1.6 has lots of bugs

==Hello World
 class helloworld
{
        public static void main(String args[])
        {
           System.out.println("Hello World!");
        }
}

Add "C:\Program Files (x86)\Java\jdk1.7.0_01\bin" into path
Set CLASSPATH=.

>javac helloworld.java  ( Create helloworld.class )
>java helloworld           ( Note not helloworld.class )
 Hello World!


没有评论: