class Writer extends Thread { public void run() { System.out.println("Writer run"); } public static void main(String[] args) { Runnable c = new Writer(); Thread t = new Thread(c); t.run(); } }
public void run() {
System.out.println("Writer run");
}
public static void main(String[] args) {
Runnable c = new Writer();
Thread t = new Thread(c);
t.run();
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.