DataInputStream is an example of

Options
- Output stream
- I/O stream
- Filtered stream
- File stream


CORRECT ANSWER : Filtered stream

Discussion Board
Java

Good

Ambuj Kumar 01-27-2016 12:55 AM

java

I wnat more questions for break the all level .

kmlesh 05-28-2015 12:19 AM

DataInputStream

The class Java.io.DataInputStream is used by an application to read primitive Java data types from an underlying input stream in a machine-independent way. Filtered stream is used for DataInputStream as this allows the filtration of data by reading or writing it to the stream. The filterstreams that are used to input/out are: FilterInputStream or FilterOutputStream.
Filter stream is used to read and write to the stream wherein read() reads the input from underlying stream in a readable filter stream, then it filters it and passes to the filtered data to the caller. Whereas, the write() filters the data and then writes it to the underlying stream in a writable filter stream. It is used as:

Class declaration
Following is the declaration for Java.io.DataInputStream class:

public class DataInputStream
extends FilterInputStream
implements DataInput

Rohit Sharma 07-26-2014 07:38 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement