//PROGRAM 12-3 class MyRunnable implements Runnable { private Thread t; // constructor kelas MyRunnable MyRunnable() { t = new Thread(this); // melewatkan objek MyRunnable t.start(); // menjalankan thread } public void run() { System.out.println("Thread baru dieksekusi"); } } class DemoImplementRunnable2 { public static void main(String[] args) { // HANYA SATU LANGKAH MyRunnable obj = new MyRunnable(); System.out.println("Thread utama dieksekusi"); } }