1. Byte stream InputStream/OutputStream
1. FileInputStream/FileOutputStream: file byte stream, used for file read and write operations
2. BufferedInputStream/BufferedFileOutputStream: byte stream with buffer added to improve efficiency
(Video tutorial recommendation: java video)
2. Character stream Reader/ Writer
1, FileReader/FileWriter: file character stream, used for reading and writing text files
2, BufferedReader/BufferedWriter: buffered character stream, used to improve efficiency
3. Convert stream InputStreamReader/OutputStreamWriter
Recommended tutorial: Getting started with java development
The above is the detailed content of There are several types of streams in java. For more information, please follow other related articles on the PHP Chinese website!