Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Java
« Previous
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
« Previous
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲