answersLogoWhite

0

What are IO Streams in JAVA?

Updated: 11/19/2022
User Avatar

Wiki User

16y ago

Best Answer

IO streams are usually binary output or input of a file. It is particularly useful to store information in small files. It also allows Serializable objects to be written on the files. But it is usually not a good choice to store Strings or numbers in a stream since it is hard to read from a stream and convert back to the original data type.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are IO Streams in JAVA?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do the IO facilities in C plus plus differ from those in C?

The C standard library IO facilities are not extensible. For instance, the printf() and scanf() functions cannot handle user-defined types. However, the C++ standard library provides IO streams with insertion and extraction operators (<< and >>) that can be overloaded to support any user-defined type.


What is the use of BufferedReader in Java programming?

The BufferedReader class provides buffering to your Reader's. Buffering can speed up IO quite a bit. Rather than read one character at a time from the network or disk, you read a larger block at a time. This is typically much faster, especially for disk access and larger data amounts. The main difference between BufferedReader and BufferedInputStream is that Reader's work on characters (text), wheres InputStream's works on raw bytes. To add buffering to your Reader's simply wrap them in a BufferedReader. Here is how that looks: Reader input = new BufferedReader( new FileReader("c:\\data\\input-file.txt"));


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.


What is difference between exception and error in java and explain using a program?

Error occurs at runtime and cannot be recovered, Outofmemory is one such example. Exceptions on the other hand are due conditions which the application encounters, that can be recovered such as FileNotFound exception or IO exceptions

Related questions

What is FileReader?

In java FileReader is a class which is meant for reading streams of characters.


A package in java that contains a collection of classes that allow you to read and write to streams?

java.io


How do the IO facilities in C plus plus differ from those in C?

The C standard library IO facilities are not extensible. For instance, the printf() and scanf() functions cannot handle user-defined types. However, the C++ standard library provides IO streams with insertion and extraction operators (<< and >>) that can be overloaded to support any user-defined type.


What are uses of FileInputStream and FileOutputSteam?

FileInputStream and FileOutputStream are useful for writing to and reading from files in Java. The streams can be passed to any method that requires an InputStream or OutputStream, respectively.


What is IO mapped?

Peripheral-Mapped IO is IO that is selected when the IO/M- line is high.


What does io mean in English?

If you are referring to the Italian word 'Io' which can be used in the sentence 'Io Sono', Io means I. Io sono means I am.


What is Peripheral-Mapped IO?

Peripheral-Mapped IO is IO that is selected when the IO/M- line is high.


Differentiate between memory mapped IO and IO mapped IO?

Memory mapped IO is one where the processor and the IO device share the same memory location(memory) while IO mapped IO is one where the processor and the IO device have different memory located to each other.


What moon is named io?

The moon Io.


What is the birth name of Io Bottoms?

Io Bottoms's birth name is Io Cecilia Bottoms.


The maximum number of Io devices can be interfaced with 8085 in the Io mapped Io technique?

3


Is there a class I can take for Java Traning in Chicago?

There are several courses that run from time to time. IT training company Hott lists Java programming courses in Chicago at: [url]http://www.traininghott.com/CityCourses/Chicago-IL-Java-Programming-Hands-On-Training-Course-Class-Seminar-JDK-EJB-JSP-Swing-AWT.htm[/url] Yes. There is a Java training that you can take in Chicago. There are different classes to choose from. One is called "Java Programming: A Comprehensive Hands-On Introduction". In this training you will learn how to write, compile and execute Java programs; build robust applications using Java's object-oriented features; create robust applications using Java class libraries; develop platform-independent GUIs; read and write data using Java streams; and retrieve data from a relational database with JDBC.