Getting Started
ARCS Lab.
2
The Java Technology Phenome-non
Talk about Java technology seems to be everywhere, but what exactly is it?► About the Java Technology► What Can Java Technology Do?► How Will Java Technology Change My Life?
3
About the Java Technology
The Java Programming Language ► High performance
► Robust► Secure
► Simple► Object oriented► Distributed► Multithreaded► Dynamic► Architecture neu-
tral► Portable
4
About the Java Technology An overview of the Software development
process
CompilerJavaVM
0100101…
MyProgram.java MyProgram.class My Program
5
About the Java Technology Through the Java VM, the same application
is capable of running on multiple platformsClass HelloWorld { public static void main(string[] arcs) { System.out.println(“Hello World!”); }}
HelloWorld.java
JVMJVM JVM
Compiler
6
About the Java Technology The Java Platform
► The Java Virtual Machine► The Java Application Programming Interface
(API)
MyProgram.javaAPIJava Virtual Machine
Hardware-Based Platform
Javaplatform
7
What Can Java Technology Do? Development Tools Application Programming Interface (API) Deployment Technologies User Interface Toolkits Integration Libraries
8
How Will Java Change My Life? Get Started quickly Write less code Write better code Develop programs more quickly Avoid platform dependencies Write once, run anywhere Distribute software more easily
9
The “Hello World!” Application A Checklist
► The Java SE Development Kit (JDK 6)► For MS Windows, Solaris and Linux
http://www.oracle.com/technetwork/java/javase/downloads
► For Mac OS Xhttp://developer.apple.com
► The Eclipse IDEhttp://www.eclipse.org/downloads/
10
Creating Your First Application Create a Java Project
11
Creating Your First Application In the Name and Location page of the wiz-
ard, do the following
12
Creating Your First Application Create a Class
13
Creating Your First Application Create a Class
14
Creating Your First Application
15
A Closer Look at the “Hello World!”
Source Code Commentspackage test;
public class FirstClass{ /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); }}
16
A Closer Look at the “Hello World!”
The “FirstClass” Class Definitionpackage test;
public class FirstClass{ /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); }}
17
A Closer Look at the “Hello World!”
The “test” Package Definitionpackage test;
public class FirstClass{ /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); }}
18
A Closer Look at the “Hello World!”
The “main” Method Definitionpackage test;
public class FirstClass{ /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); }}
19
Q & A