Posts

Showing posts with the label Java

I/O in Java

Image
 Few things to know about streams: Stream is an abstraction that either produces or consumes information. A stream is linked to a physical device. Java performs I/O using steams.  Types of Streams: Byte Streams - For reading or writing binary data - which means all the data types in the world. Character Streams - For handling input and output of characters. In some cases, character streams are more efficient. Refer to the below summary: