Stream and its benefits


Question 1: What do you mean by the term file? Why do we need files to store the data?

Question 2: What do you mean by the term stream? Illustrate the benefits of stream?

Question 3: Differentiate between:

a) InputStream and Reader Classes
b) OutputStream and Writer Classes

Question 4: Explain the function of File class.

Question 5: Why do we require the random access files?

Question 6: How will you check whether the file to be opened for writing already exists?

Question 7: How is double type value read from the key-board?

Question 8: The programmer should explicitly make the System.in and System.out objects. Illustrate True /False.

Question 9: If the file pointer points to a position in a sequential file other than the beginning, we should use the seek method to bring the pointer to the beginning, to read from the beginning of the file again. Illustrate True/False.

Question 10: To delete a file, we can use an instance of class File. Illustrate True/False.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Stream and its benefits
Reference No:- TGS08757

Expected delivery within 24 Hours