- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are I/O classes in Java?
The java.io package contains nearly every class you might ever need to perform input and output (I/O) in Java. All these streams represent an input source and an output destination. The stream in the java.io package supports many data such as primitives, object, localized characters, etc.
A stream can be defined as a sequence of data. There are two kinds of Streams −
- InputStream: The InputStream is used to read data from a source.
- OutputStream: The OutputStream is used for writing data to a destination.
As described earlier, a stream can be defined as a sequence of data. The InputStream is used to read data from a source and the OutputStream is used for writing data to a destination.
Here is a hierarchy of classes to deal with Input and Output streams.
- Related Articles
- What are I/O classes in C#?
- What are Java classes?
- What are final classes in Java?
- What are abstract classes in Java?
- What are inner classes in Java?
- What are wrapper classes in Java?
- What are anonymous inner classes in Java?
- What are Java parent and child classes in Java?
- What are method local inner classes in Java?
- What is an I/O filter in Java?
- What are the different types of classes in Java?
- What are key-based I/O collections in C#?
- What are the differences between Java classes and Java objects?
- What are the different types of nested classes are defined in Java?
- Primitive Wrapper Classes are Immutable in Java

Advertisements