Additional Java SE Packages

Buffer classes Heirarchy

Java introduced the New I/O (NIO) package (java.nio) to provide more efficient data handling, especially for large-scale, non-blocking input/output operations. Central to this NIO architecture is the Buffer class and its subclasses, which are used for storing and manipulating data in memory. 1. The Root Class – java.nio.Buffer At the top of the hierarchy is …

Buffer classes Heirarchy Read More »

Console

The Console class in Java (available in the java.io package) provides methods to access the character-based console device — typically, the text terminal from which the user runs the program. It’s useful for reading input and writing output in a secure and interactive way, especially for password input where echoing is disabled. The Console class …

Console Read More »

File

The File class in java.io package represents a file or directory path in the file system. It provides methods to create, delete, inspect, and manipulate files and directories but does not provide direct file content reading or writing capabilities. Those operations are done using other stream classes like FileReader, FileWriter, etc. Commonly Used Constructors and …

File Read More »

Scroll to Top