java3
java3
1. Define an exception. Explain the key terms used in exception handling with Examples.
2. Write a java program for user defined exception handling
3. Explain built in exception and uncaught exception
4. Illustrate the mechanism of handling chained exception with an example.
5. Write a program that contains one method that will throw an IllegalAccessException and us
proper exception handles so that the exception should be printed
6. Write a Java program for a banking application to throw an exception when a person tries t
withdraw the amount even through he/she has lesser than minimum balance(create custom
exception)
MODULE -5
7. What is multithreading? Write a program to create multiple threads in JAVA.
8. What do you mean by a thread? Explain the different ways of creating threads.
9. Explain with an example how inter-thread communication is implemented in JAVA.
10. Explain auto-boxing/unboxing occurs in expressions and operators.
11. Develop a Java program for automatic conversion of wrapper class type into correspondin
primitive type and also demonstrate unboxing.
12. Explain with an example how synchronization is implemented in JAVA
13. Develop a Java program to create a class myThread. Call the base class constructor in th
class’s constructor using super and start the thread. The run method of the class starts afte
this. It can be observed that both main thread and created child thread are execute
concurrently.
14. Summarize type wrappers supported in JAVA
15. What is the need of synchronization?
16. Discuss values() and value Of() methods in Enumerations with suitable examples.