The object of DataInputStream is used to

Options
- To covert binary stream into character stream
- To covert character stream into binary stream
- To write data onto output object
- All of the above


CORRECT ANSWER : To covert binary stream into character stream

Discussion Board
DataInputStream

DataInputStream as the name suggests is used in a application to read the character stream and convert them into a binary stream. So, its main function is to read the primitive data types used in the programming language and convert them in a machine-independent way. Once it is done DataOutputStream reads the data and write it to the memory location. It is not considered safe for multithreaded access as in this case reading data from multiple threads is always a security concern. Thread safety is the concerned of the user while using this method.

Rohit Sharma 07-28-2014 02:13 AM

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