190 likes | 310 Views
Getting Started. ARCS Lab. The Java Technology Phenomenon. 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?. About the Java Technology. The Java Programming Language.
E N D
Getting Started ARCS Lab.
The Java Technology Phenomenon • 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?
About the Java Technology • The Java Programming Language • Simple • Object oriented • Distributed • Multithreaded • Dynamic • Architecture neutral • Portable • High performance • Robust • Secure
About the Java Technology • An overview of the Software development process Java VM 0100101… My Program MyProgram.class MyProgram.java Compiler
About the Java Technology • Through the Java VM, the same application is capable of running on multiple platforms Class HelloWorld { public static void main(string[] arcs) { System.out.println(“Hello World!”); } } HelloWorld.java Compiler JVM JVM JVM
About the Java Technology • The Java Platform • The Java Virtual Machine • The Java Application Programming Interface (API) MyProgram.java API Java platform Java Virtual Machine Hardware-Based Platform
What Can Java Technology Do? • Development Tools • Application Programming Interface (API) • Deployment Technologies • User Interface Toolkits • Integration Libraries
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
The “Hello World!” Application • A Checklist • The Java SE Development Kit (JDK 6) • For MS Windows, Solaris and Linuxhttp://www.oracle.com/technetwork/java/javase/downloads • For Mac OS Xhttp://developer.apple.com • The Eclipse IDEhttp://www.eclipse.org/downloads/
Creating Your First Application • Create a Java Project
Creating Your First Application • In the Name and Location page of the wizard, do the following
Creating Your First Application • Create a Class
Creating Your First Application • Create a Class
A Closer Look at the “Hello World!” • Source Code Comments package test; public class FirstClass { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); } }
A Closer Look at the “Hello World!” • The “FirstClass” Class Definition package test; public class FirstClass { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); } }
A Closer Look at the “Hello World!” • The “test” Package Definition package test; public class FirstClass { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); } }
A Closer Look at the “Hello World!” • The “main” Method Definition package test; public class FirstClass { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(“Hello, Sungkyunkwan University!”); } }