/*Write a java program having three Threads where the first Thread collects details of Personal Data (eg.Name and age)the second thread collects details of School Data (eg.Class and School) and the third collects details of town (eg.place and pincode) Output all the details together indicating the details collected by each thread AIM: To create 3 different threads where each thread collects different information and outputs all the details together. */ class thread1 extends Thread { public void run() { try { Thread.sleep(1000); System.out.println("Name:Varun"); System.out.println("Age:10"); }catch(InterruptedException i){} } } class thread2 extends Thread { public void run() { try { Thread.sleep(3000); System.out.println("Class:XII Standard"); System.out.println("School:Joseph's matric school"); }catch(InterruptedException i){} } } class thread3 extends Thread { public void run() { try { Thread.sleep(6000); System.out.println("Place:Shanthi Nagar"); System.out.println("Pincode:635109"); }catch(InterruptedException i){} } } class threaddemo { public static void main(String args[]) { thread1 t1=new thread1(); t1.start(); thread2 t2=new thread2(); t2.start(); thread3 t3=new thread3(); t3.start(); } }