Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Assignment-6

Unit —VI Managing Input /Output/ Files in Java


Sr.
Questions Marks
No

1. Define stream class. List its types. 2

List the methods of File Input Stream Class.


2. 2

Explain the following classes.


3. 4
i)Byte stream class ii)Character Stream Class
Draw the hierarchy of Writer stream classes, and hierarchy of Reader
4. 4
stream classes.
Write a program to copy contents of one file to another. Using byte stream
5. 4
classes.

6. Differentiate between Input stream class and Reader class. 4

7. Distinguish between Input stream class and output stream class 4

Write a program to count number of words from a text file using stream
8. 6
classes.

9. Explain Serialization in relation with stream classes. 6

10. Write a program that will count no. of characters in a file. 6

11. Write any four methods of file class with their use. 6

You might also like