Bufferedinput-outputstreams


Question 1: What is the difference between text I/O and binary I/O?

Question 2: What happens if you try to create a FileInputStream on a file that does not exist?

Question 3: What happens if you try to create a FileOutputStream on a file that does not exist?

Question 4: What are BufferedInput/OutputStreams and why are they used? Write some Java code to illustrate how to create a BufferedInputStream.

Question 5: Write the line of code you would need to open the file c:\temp\mydata.txt for reading primitive data values from the file such as doubles, floats, ints, etc.

Question 6: Write lines of code to create object input and output streams for the file c:\temp\mydata.out.

Question 7: What is the difference between sequential access and random access?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Bufferedinput-outputstreams
Reference No:- TGS0535381

Expected delivery within 24 Hours