Multi Threading.
create thread method 1- package M ulti_ T hreading ; class A extends Thread { @ Override public void run (){ try { for ( int i = 0 ; i < 5 ; i ++ ){ System . out . println ( "thread" ); Thread . sleep ( 1000 ); } } catch ( InterruptedException e ){ System . out . println ( e ); } } } public class createThread1 { public static void main ( String [] args ) throws InterruptedException { A t = new A (); t . start (); for ( int i = 0 ; i < 5 ; i ++ ){ System . out . println ( "main" ); Thread . sleep ( 1000 ); } } } create thread method 2- package M ulti_ T hreading ; class B implements Runnable { public void run (){ for ( int i = 0 ; i < 5 ; i ++ ){ System . out . println ( "thread ji" ); } } } public class createThread2 { public static void main ( String [] args ) ...