This document contains instructions for an assignment involving packages, exception handling, multithreading, and applet programming using Swing. It lists 10 tasks including implementing multiple inheritance using packages, using multiple catch blocks to handle exceptions, illustrating the finally block, creating and running threads using different methods, and developing applets that take user input, perform calculations, and display output.
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
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.