Object oriented programming
This presentation is the property of its rightful owner.
Sponsored Links
1 / 52

Object-Oriented Programming PowerPoint PPT Presentation


  • 85 Views
  • Uploaded on
  • Presentation posted in: General

Object-Oriented Programming. ผู้สอน อ.วาทินี ดวงอ่อนนาม. การเขียนโปรแกรมเชิงวัตถุ. บทที่ 2 : แนะนำ จาวา. แนะนำเครื่องมือที่ใช้ในการพัฒนาโปรแกรมด้วยจาวา แนะนำภาษาจาวา หลักการทำงานของจาวา. รู้จักกับภาษา Java.

Download Presentation

Object-Oriented Programming

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Object-Oriented Programming

.


2 :


Java

  • Java Sun Microsystems Green Project 1996 James Gosling Java Java


Java

  • Java


Java Technology


Java

  • Java Source Code .java Source Code Java Byte Code ( .class)

  • Java Byte Code Java Virtual Machine (JVM)


Java Source code Save (.java) Compile File (.class) Compiler Java (javac) (.class) Bytecode Java Virtual Machine(JVM)


Compile Java

Interpreter

Javac.exe

Java.exe


JVM

  • Java Virtual Machine (JVM) (.class ) Run Microsoft Windows, Solaris , Linux, MacOS


(JVM)

  • JVM

Java program

Java program

Java program

Java virtual machine

Windows

Unix

Macintosh


Write Once Run Anywhere


Write Once Run Anywhere


Compiler Interpreter


Java Java Technology

  • Java SE: Java Standard Edition Java

  • Java EE: Java Enterprise Edition Servlets, JSP XML


Java Java Technology

  • Java ME : Java Micro Edition () ,

    PDA


  • JVM (Java Virtual Machine)

  • JRE(Java Runtime Environment)

  • J2SDK(Java 2 Software Development Kit)


Java


Platform

  • Platform Hardware Software RunProgram Platform Platform Microsoft Windows, Linux, Solaris OS, MacOS Platform Java Platform Platform Run Hardware

  • Java


Java Platform 2

  • Java Virtual Machine (JVM)

  • Application Programming Interface (API)

API Java Virtual Machine (JVM) Hardware


JVM

  • Java Virtual Machine (JVM) Java Virtual Machine(JVM) Applet servlet JVM


API

  • Application Programming Interface (API)

  • API Components Graphical User Interface (GUI) API Libraries Classes Interfaces Libraries Java packages


  • Java Write Once Run Anywhere () Java


3



  • : Windows 98, XP, Vista, Linux, Unix, Solaris ( WindowsXP )

  • : JDK EditPlus 500 MB

  • : JDK EditPlus Applet


JDK

  • JDK http://java.sun.com/javase/downloads/index.jsp


JDK ()


JDK ()


  • Start > Programs > Accessories > Command Prompt

  • Command Prompt java version JDK


()

PATH JDK

  • My Computer Properties

  • Advanced


  • System variables Path

  • Variable Value ;C:\Program Files\Java\jdk1.6.0_16\bin;


CLASSPATH

  • New System Variable


CLASSPATH ()

  • CLASSPATH


Development Tool

  • Jbuilder

  • Oracle JDeveloper

  • Gel

  • BlueJ

  • Java Forte

  • EditPlus


Java

  • - Borland JBuilder: Visual () Borland Download

  • www.borland.com

  • - Sun One Studio: Sun Microsystem Download http://java.sun.com

  • -Editplus: Download www.editplus.com


Java

  • - BlueJ: Editor Class Diagram Class

  • - NotePad: Editor Windows (line of code)

  • - NetBeans : Swing GUI Download www.netbeans.org

  • Editor Java


  • EditPlus

  • config


  • C:\Program Files\Java\jdk1.6.0_16\bin

  • Javac.exe

  • Java.exe

  • Appletviewer.exe

    applet


config EditPlus

  • font


config EditPlus

  • configEditPlus


Config User Tool

  • Java Compile

    C:\Program Files\Java\jdk1.6.0_16\bin\Javac.exe

  • Java RUN

    C:\Program Files\Java\jdk1.6.0_16\bin\Java.exe


config EditPlus

add tool/Program


configEditPlus (set compiler)


configEditPlus(set interpreter)

OK EditPlus


config EditPlus

add tool/Program

set compiler

set interpreter


EditPlus

  • EditPlus

  • File/Newjava

  • HelloWorld.java

class HelloWorld

{

public static void main(String[] args)

{

System.out.println("Hello World! ");

}

}



compile Ctrl + 1


compile .class(Byte Code)


run Ctrl + 2


Output


  • Java JDK Java

  • JDK Java SE 6.0 6.0

  • JDK Editplus, Command Line


  • Login