Assignment No.
1. Explain the types of errors and exceptions in Java with suitable examples.
2. Explain try, catch, multiple catch, and finally blocks with a Java program.
3. Differentiate between throw and throws keywords. Explain with example.
4. What are built-in exceptions? How do you create and use a user-defined
exception in Java?
5. Explain exception propagation in Java with a suitable program.
6. What is multithreading? Explain its advantages and applications.
7. Explain the two ways of creating threads in Java:
a) By extending Thread class
b) By implementing Runnable interface
8. Explain the life cycle of a thread with diagram and thread methods.
9. Explain important thread methods start(), run(), sleep(), join() and thread
priority with example.
10. Explain synchronization in Java. How are exceptions handled in
multithreaded programs?