Kalyani Govt. Engg. College
EE/6th
Sem/OOP-LAB (EE-694(c))/Assignment - 4
Due Date:- 30-04-2013
Packages
1. Implementthe followingmultipleinheritance usingpackages:
Exceptionhandling
2. Write a program usingmultiple catchblockstocatch ArithmeticException,ArrayIndexOutOfBoundsException.
3. Write a program to illustrate the use of finallyblock.
Multithreading
4. Create three Threads;T1, T2 and T3 byusingThreadClass.run() those Threads.
5. Modifythe above programto showthe use of yield(),stop() andsleep() methods.
6. Modifyprogram-4to showthe use of priorityinthreads.
7. Create a ThreadTx by implementingthe ‘Runnable’interface.Write aprogramto testthe TreadTx.
AppletProgramming (usingswing)
8. Developanappletthatreceivesthree numericvaluesasinputfromthe userand thendisplaysthe largestof the
three onthe screen.Write aHTML page and testthe applet.
9. Developanappletusing javax.swingthatwill give the followingwhenviewedinbrowser.Itshouldpromptthe
Buttonthat userclicks.
10. Developanappletusing javax.swingthatwill take twonumbersasuserinputandshow the sum andproduct on
clicking“Calculate Sum”and“Calculate Product”Button.

Ee java lab assignment 4

  • 1.
    Kalyani Govt. Engg.College EE/6th Sem/OOP-LAB (EE-694(c))/Assignment - 4 Due Date:- 30-04-2013 Packages 1. Implementthe followingmultipleinheritance usingpackages: Exceptionhandling 2. Write a program usingmultiple catchblockstocatch ArithmeticException,ArrayIndexOutOfBoundsException. 3. Write a program to illustrate the use of finallyblock. Multithreading 4. Create three Threads;T1, T2 and T3 byusingThreadClass.run() those Threads. 5. Modifythe above programto showthe use of yield(),stop() andsleep() methods. 6. Modifyprogram-4to showthe use of priorityinthreads. 7. Create a ThreadTx by implementingthe ‘Runnable’interface.Write aprogramto testthe TreadTx. AppletProgramming (usingswing) 8. Developanappletthatreceivesthree numericvaluesasinputfromthe userand thendisplaysthe largestof the three onthe screen.Write aHTML page and testthe applet. 9. Developanappletusing javax.swingthatwill give the followingwhenviewedinbrowser.Itshouldpromptthe Buttonthat userclicks. 10. Developanappletusing javax.swingthatwill take twonumbersasuserinputandshow the sum andproduct on clicking“Calculate Sum”and“Calculate Product”Button.