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 Compiler Java VM 0100101… MyProgram.java MyProgram.class My Program
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 Virtual Machine Hardware-Based Platform Java 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 Linux http://www.oracle.com/technetwork/java/javase/downloads For Mac OS X http://developer.apple.com The Eclipse IDE http://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
Creating Your First Application
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!”); }
Q & A