Sie sind auf Seite 1von 16

PEMROGRAMAN

BERORIENTASI
OBYEK Session 1
Introduction to
Java
Koko Wahyu Prasetyo, S.Kom., M.T.I.

koko@stiki.ac.id
Semester Gasal 2012/2013
Objectives
 Introduction to Java programming language
 Data types
 Operators
 Writing our first Java application

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


About Java
 Derives much of its syntax from C and C++
 Object-oriented programming language

“Write Once, Run Anywhere”

Java code that runs in a platform does


not need to be recompiled to run
on another platform

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


Java Primary Goals
 Simple, object-oriented, and familiar
 Robust and secure
 Architecture-neutral and portable
 High performance
 Interpreted, threaded, and dynamic

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


Java Development Phase
Editing

Compiling

Loading

Verifying

Executing

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


First Look on Java App

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


Data Types
Primitive
types

floating
integral boolean
point

byte short long int char float double

Reference
types

Class Interface Array

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


Variables and Constants

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


Operators

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13
1. Create New Project

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


2. Set Project Name

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


3. Create New Class

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


4. Provide Class Details

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


5. Write Your Code

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13


6. Save and Run!

koko@stiki.ac.id Pemrograman Berorientasi Obyek / S1 TI / Gasal 12-13

Das könnte Ihnen auch gefallen