0% found this document useful (0 votes)
4 views1 page

Java Exception Handling and File I/O Guide

The document outlines an assignment consisting of multiple tasks related to Java programming. It includes defining exceptions and their types, explaining the use of try, catch, finally, and throw blocks, and differentiating between throw and throws, as well as errors and exceptions. Additionally, it requires coding examples for file operations using byte and character streams, and creating threads using both the thread class and runnable interface.

Uploaded by

Priya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Java Exception Handling and File I/O Guide

The document outlines an assignment consisting of multiple tasks related to Java programming. It includes defining exceptions and their types, explaining the use of try, catch, finally, and throw blocks, and differentiating between throw and throws, as well as errors and exceptions. Additionally, it requires coding examples for file operations using byte and character streams, and creating threads using both the thread class and runnable interface.

Uploaded by

Priya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like