English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dans ce tutoriel, nous allons apprendre Java entrée/Flux de sortie et leur type.
En Java, un flux est une séquence de données lues à partir de la source et écrites vers la cible.
unFlux d'entréeutilisé pour lire des données à partir de la source. Et aussi,Flux de sortieutilisé pour écrire des données vers la cible.
class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }
For example, in our firstHello WorldIn the example, we have used System.out to print strings. Here, System.out is an output stream.
Similarly, there are input streams that receive input.
We will learn about input streams and output streams in detail in the following tutorials.
According to the data contained in the stream, it can be classified as:
Byte streams
Character streams
Byte streams are used to read and write individual bytes (8data (bits).
All byte stream classes are derived from the basic abstract classes called InputStream and OutputStream.
For more information, please visit
Character streams are used to read and write individual data characters.
All character stream classes are derived from the basic abstract class Reader and Writer.
For more information, please visit