A good answer might be:

Yes. Java programs on all platforms use the same data type formats.

InputStream

You will need to know what data type is used in the file---byte, short, int, or long---but once you know that, there will be no problems. But if the file contains several data types and you don't know the order they were written, it will be difficult to read. The subclasses of InputStream are used to read bytes that use the format of various data types.

Not all of these streams are concerned with input from disk files. For example, PipedInputStream represents data coming in from another running program.

QUESTION 2:

If a file was written with DataOutputStream, what input stream do you suspect will be useful?

Click Here after you have answered the question