public class Test implements Runnable { public static void main(String[] args) throws InterruptedException { Test test = new Test(); Thread t= new Thread(test); t.start(); t.join(); System.out.print("main"); } public void run() { System.out.print("run"); } }
public static void main(String[] args) throws InterruptedException {
Test test = new Test();
Thread t= new Thread(test);
t.start();
t.join();
System.out.print("main");
}
public void run() {
System.out.print("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.