Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
Modul kelas Java programming.
© FGroupIndonesia.com
 Pengertian
 Life Cycle
 PembuatanThread
 Runnable Interface
 Thread Class
 Method Umum
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
 Java support multi-threading, artinya multi
processing dalam 1 waktu dapat bekerja
secara simultan / berurut.
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
 Dapat memilih 1 diantara 2 cara berikut:
 Runnable Interface
 Thread Class
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
 Runnable Interface
Membutuhkan :
 Class implements Runnable
 Run Method
 MenggunakanObject Runnable tersebut ke
dalam newThread().start()
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
 Runnable Interface
 Runnable Interface
 Thread Class
 Membutuhkan:
 Class ExtendsThread
 Run Method
 Langsung menggunakan newThread().start()
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
 Thread Class
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
 Thread Class
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
 .start()
 .run()
 .setName(String nama)
 .sleep(int milis)
 .isAlive()
 Dan banyak lagi...
 Beberapa method yg memiliki Exception
harus di bungkus oleh:
 Try & Catch agar dapat ditanggulangi apabila
terjadi sebuah error saat memproses code yg
terdapat di dalam run() method.
---------------------------------------------------------------------------
Kursus Online / Offline di © FGroupIndonesia.com
FGroupIndonesia.com
Jl. Parahyangan no.18, Komp. Panghegar Permai I
Ujung Berung, Bandung 40614
(022) 92800446 / 95244964
BBM. 7DF95683 / 7CD59179
WA. 085795569337 / 085721261437

More Related Content

Modul Kelas Programming : Java Thread