Assignment-2
1. Define exception in java, its type, keywords to deal with
exception.
2. Define the uses of try block, catch block, finally block and
throw with code.
3. Difference between throw and throws.
And differentiate between error and exception.
4. Read and Write file using byte stream (with coding).
5. Read and write file using character stream.
6. Write a code creating thread using thread class.
7. Write a code creating thread using runnable interface.