Getting Started

  • View
    38

  • Download
    0

Embed Size (px)

DESCRIPTION

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. - PowerPoint PPT Presentation

Text of Getting Started

1

Getting StartedARCS Lab.

The Java Technology PhenomenonTalk about Java technology seems to be everywhere, but what exactly is it?About the Java TechnologyWhat Can Java Technology Do?How Will Java Technology Change My Life?2About the Java TechnologyThe Java Programming Language3High performanceRobustSecure

SimpleObject orientedDistributedMultithreadedDynamicArchitecture neutralPortableAbout the Java TechnologyAn overview of the Software development process4

Compiler

JavaVM0100101MyProgram.javaMyProgram.classMy ProgramAbout the Java TechnologyThrough the Java VM, the same application is capable of running on multiple platforms5Class HelloWorld { public static void main(string[] arcs) { System.out.println(Hello World!); }}HelloWorld.java

JVMJVMJVM

CompilerAbout the Java TechnologyThe Java PlatformThe Java Virtual MachineThe Java Application Programming Interface (API)

6MyProgram.javaAPIJava Virtual MachineHardware-Based PlatformJavaplatformWhat Can Java Technology Do?Development ToolsApplication Programming Interface (API)Deployment TechnologiesUser Interface ToolkitsIntegration Libraries

7How Will Java Change My Life?Get Started quicklyWrite less codeWrite better codeDevelop programs more quicklyAvoid platform dependenciesWrite once, run anywhereDistribute software more easily

8The Hello World! ApplicationA ChecklistThe Java SE Development Kit (JDK 6)For MS Windows, Solaris and Linuxhttp://www.oracle.com/technetwork/java/javase/downloadsFor Mac OS Xhttp://developer.apple.com

The Eclipse IDEhttp://www.eclipse.org/downloads/

9Creating Your First ApplicationCreate a Java Project10

Creating Your First ApplicationIn the Name and Location page of the wizard, do the following11

Creating Your First ApplicationCreate a Class12

Creating Your First ApplicationCreate a Class13

Creating Your First Application14

A Closer Look at the Hello World!Source Code Comments15package 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 Definition16package 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 Definition17package 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 Definition18package test;

public class FirstClass{ /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(Hello, Sungkyunkwan University!); }}Q & A19