GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Java/java/thread/Thread3.java at main · Vishuu005/Java Expand file tree/ Copy pathThread3.javaMore file actions 23 lines (23 loc) · 464 Bytes / Copy pathThread3.javaFile metadata and controls23 lines (23 loc) · 464 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 class Thread1 implements Runnable { //InterruptedException//error public void run() { System.out.println("name :"+Thread.currentThread().getName()); try{ Thread.sleep(2000); System.out.println("id:"+Thread.currentThread().getId()); Thread.sleep(1000); System.out.println("priority:"+Thread.currentThread().getPriority()); } catch(InterruptedException i) { i.printStackTrace(); } } public static void main(String[] args) { Thread1 obj=new Thread1(); obj.run(); } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |