Collections: Programming languages are used to develop applications. Applications are used to store and process the information. If we structure the data while storing, we can access more effectively. To structure the data number of …
java.io.File: It is belongs to java.io package. It is used to perform all File and Directory operations in Java app. public class File extends Object implements Serializable, Comparable<File> Checking the specified File is present or …
PrintStream class : The PrintStream class is obtained from the FilterOutputstream class that implements a number of methods for displaying textual representations of Java primitive data types. Unlike other output streams, a PrintStream never throws an IOException and the …
DataInputStream Is used to read java primitive data types from an underlying input stream. It is inherited from FilterInputStream class. It has only one constructor, and it takes byte stream object as an argument. String …
ByteArrayInputStream It is an implementation of an input stream that uses a byte array as the source. This class has two constructors, each of which requires a byte array to provide the data source: …
Object streams (Serialization) Writing(Storing) Object information in a physical storage area(File, Database ..) Serialization is the concept of converting Object state into Persistent(permanent) state. Generally in Java application, objects will be created in Heap area …
Buffered Streams : Buffer is a temporary storage area while processing the information. In some of the applications we use Buffers to process the data instead of fetching information from the secondary memory every time. …
Character Streams Prior to JDK 1.1, the input and output classes (mostly found in the java.io package) supported only 8-bit “byte” streams. In JDK 1.1 the concept of 16-bit Unicode “character” streams was introduced. While …
Byte Streams: Processing the data byte by byte. Classes since JDK1.0 The 2 main abstract classes are InputStream class OutputStream class Extensions are FileInputStream – to perform read operations FileOutputStream – to perform write operations …
IO Streams: Stream is a flow of data IO streams are used to send and receive the information from Primary to Secondary memory or vice versa. java.io package is providing classes and interfaces to implement …