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

Object-Oriented Programming PowerPoint PPT Presentation


  • 84 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

Object-Oriented Programming

.


Object oriented programming

2 :


Object oriented programming

Java

  • Java Sun Microsystems Green Project 1996 James Gosling Java Java


Object oriented programming

Java

  • Java


Java technology

Java Technology


Object oriented programming

Java

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

  • Java Byte Code Java Virtual Machine (JVM)


Object oriented programming

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


Compile java

Compile Java

Interpreter

Javac.exe

Java.exe


Object oriented programming

JVM

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


Object oriented programming

(JVM)

  • JVM

Java program

Java program

Java program

Java virtual machine

Windows

Unix

Macintosh


Write once run anywhere

Write Once Run Anywhere


Write once run anywhere1

Write Once Run Anywhere


Compiler interpreter

Compiler Interpreter


Java java technology

Java Java Technology

  • Java SE: Java Standard Edition Java

  • Java EE: Java Enterprise Edition Servlets, JSP XML


Java java technology1

Java Java Technology

  • Java ME : Java Micro Edition () ,

    PDA


Object oriented programming

  • JVM (Java Virtual Machine)

  • JRE(Java Runtime Environment)

  • J2SDK(Java 2 Software Development Kit)


Object oriented programming

Java


Platform

Platform

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

  • Java


Java platform 2

Java Platform 2

  • Java Virtual Machine (JVM)

  • Application Programming Interface (API)

API Java Virtual Machine (JVM) Hardware


Object oriented programming

JVM

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


Object oriented programming

API

  • Application Programming Interface (API)

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


Object oriented programming

  • Java Write Once Run Anywhere () Java


Object oriented programming

3


Object oriented programming


Object oriented programming

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

  • : JDK EditPlus 500 MB

  • : JDK EditPlus Applet


Object oriented programming

JDK

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


Object oriented programming

JDK ()


Object oriented programming

JDK ()


Object oriented programming

  • Start > Programs > Accessories > Command Prompt

  • Command Prompt java version JDK


Object oriented programming

()

PATH JDK

  • My Computer Properties

  • Advanced


Object oriented programming

  • System variables Path

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


Classpath

CLASSPATH

  • New System Variable


Classpath1

CLASSPATH ()

  • CLASSPATH


Development tool

Development Tool

  • Jbuilder

  • Oracle JDeveloper

  • Gel

  • BlueJ

  • Java Forte

  • EditPlus


J ava

Java

  • - Borland JBuilder: Visual () Borland Download

  • www.borland.com

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

  • -Editplus: Download www.editplus.com


J ava1

Java

  • - BlueJ: Editor Class Diagram Class

  • - NotePad: Editor Windows (line of code)

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

  • Editor Java


Object oriented programming

  • EditPlus

  • config


Object oriented programming

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

  • Javac.exe

  • Java.exe

  • Appletviewer.exe

    applet


Config editplus

config EditPlus

  • font


Config editplus1

config EditPlus

  • configEditPlus


Config user tool

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 editplus2

config EditPlus

add tool/Program


Config editplus set compiler

configEditPlus (set compiler)


Config editplus set interpreter

configEditPlus(set interpreter)

OK EditPlus


Config editplus3

config EditPlus

add tool/Program

set compiler

set interpreter


Editplus

EditPlus

  • EditPlus

  • File/Newjava

  • HelloWorld.java

class HelloWorld

{

public static void main(String[] args)

{

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

}

}


Object oriented programming


Compile ctrl 1

compile Ctrl + 1


Compile class byte code

compile .class(Byte Code)


Run ctrl 2

run Ctrl + 2


Output

Output


Object oriented programming

  • Java JDK Java

  • JDK Java SE 6.0 6.0

  • JDK Editplus, Command Line


  • Login