1 / 25

BAHASA PEMROGRAMAN

BAHASA PEMROGRAMAN. - PERTEMUAN 1 - PENGANTAR DAN INSTALASI JAVA. OUTLINE. Konputer Bahasa Komputer Algoritma Pengenalan Java. Komputer ?. Computer Hardware. Computer Software. Language. English: Hello, how are you? Indonesian: Haii , apa kabar ? French: Bonjour! C¸ a va bien?

ira
Download Presentation

BAHASA PEMROGRAMAN

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BAHASA PEMROGRAMAN - PERTEMUAN 1 - PENGANTAR DAN INSTALASI JAVA

  2. OUTLINE • Konputer • BahasaKomputer • Algoritma • Pengenalan Java

  3. Komputer ?

  4. Computer Hardware

  5. Computer Software

  6. Language • English: Hello, how are you? • Indonesian: Haii, apakabar? • French: Bonjour! C¸ a va bien? • German: Guten tag. Wie geht’s? • Japanese: Konnichiwa. O genkidesu ka?

  7. Program Language • A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely.

  8. PROGRAM = DATA + ALGORITMA

  9. Algoritma • algoritma /algoritmemerupakankumpulanperintahuntukmenyelesaikansuatumasalah .

  10. Algoritma • Sequential (Berurutan) • Percabangan • Perulangan

  11. Introduction To Java

  12. What is Java ? • Java is a programming language originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. • The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. • Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. • Sumber: http://en.wikipedia.org/wiki/Java_(programming_language)

  13. Running Java Byte Code

  14. Mengenal J2SDK • J2SDK (Java 2 System Development Kit)disediakanoleh Sun Microsystem. (http://www.oracle.com/technetwork/java/javase/download ) • Perangkatpengembangan yang tergolongsebagai IDE (Integrated Development Environment) : • Semantic Café • Microsoft Visual J++ • Borland Jbuilder • NetbeansIDE (http://www.netbeans.org) • Jcreator (http://www.jcreator.com/download.htm)

  15. Jenis Program Java • Java Applet : Program Java yang diletakkanpada Web Server dandiaksesmelalu Web Browser. • Java Aplikasi : Program Java yang bersifatumum. • J2SE  Standart Edition • J2ME  Mobile Edition • J2EE  Enterprise Edition

  16. Contoh Program Java

  17. Tambahkansatunilaipada Variable Value yaitu folder binary instalasi JDK. Untukcontohpadaumumnya file path kitajugamerupakan file tempatkitamenginstall Java adalahC:\Program Files\Java\jdk1.6.0_05\bin.

  18. Kompilerdan Interpreter Java • Kompiler Java bernamajavac. Program inibergunauntukmengkompilasiberkassumberkode java kedalambentuk yang dapatdimengertioleh interpreter java. • Hasilkompilasiberupaberkasbytecode. Dalamhaliniakhiran yang digunakanberupa.class. • Interpreter java digunakanuntukmengeksekusi/ menjalankanberkasbytecode (.class). Program ini yang dipakaiuntukmenjalankan program Java, khususnyauntuk yang tergolongaplikasi.

  19. StrukturDasarPemrograman Java • Komentar • Perbaris • Blok • Java Doc • Class • Nama Class • Variable • Operation

  20. Penamaan Class • Kata Benda • Diawalihurufkapital • Tidakbolehadaspasi • Tidakbolehdiawaliangka • Unique • Case Sensitive

  21. TUGAS 1 • Buat Resume dariPertemuan 1

More Related