Java input and output is defined in terms of an abstract concept called a “stream”, which is a sequence of data. There are 2 kinds of streams.  ƒ Byte streams (8 bit bytes) →  Abstract classes are: InputStream and OutputStream ƒ Character streams (16 bit UNICODE) →  Abstract classes are: Reader and Writer  Design pattern: java.io.* classes use the ...

Read More

Following are some basic rules on how to speed up I/O: •    Avoid accessing the disk. •    Avoid accessing the underlying operating system. •    Avoid method calls. •    Avoid processing bytes and characters individually. Now let us see how they can be applied in real life code, consider the following example. Here we have a .txt file name tutursel...

Read More

Stream or IO Streams are a core concept in Java IO. A stream is a conceptually an endless flow of data. You can either read from a stream or write to a stream. A stream is connected to a data source or a data destination. Streams in Java IO can be either byte based (reading and writing bytes) or character based (reading and writing characters). Jav...

Read More

Java applications that uses I/O are excellent candidates for performance tuning. Profiling of Java applications handling significant volume of data will show significant time spent in I/O operations. This means substantial gains can be achieved by I/O performance tuning. Therefore, I/O efficiency should be a high priority for developers looking for...

Read More

FOLLOW US ON LinkedIn



Explore Tutu'rself