The stream is a sequence of data that flows from source to destination. It is composed of bytes. In Java, three streams are created for us automatically.