java nio
-
Core Java
Count Files Recursively in Java
Working with file systems is a vital part of many Java applications, and counting files recursively in a directory tree…
Read More » -
Core Java
Send and Receive Serialized Objects via Java SocketChannel
Networking is crucial in modern applications, and Java offers powerful tools like SocketChannel for efficient networked systems. Using Java NIO’s…
Read More » -
Core Java
Guide to FileOutputStream vs. FileChannel
In Java, file handling is crucial for reading from and writing to files. Two common classes used for output operations…
Read More » -
Core Java
Guide to FileWriter vs BufferedWriter
In Java, writing data to files is a common requirement, and the choice of the writer class can significantly impact…
Read More » -
Core Java
Java getResourceAsStream vs FileInputStream
Reading files is a common task in Java development, and understanding the various methods available can help us choose the…
Read More » -
Core Java
Read Last N Lines From File in Java
Reading the last N lines of a file is a common task in Java, especially when dealing with log files…
Read More » -
Core Java
Serialization with FlatBuffers in Java
FlatBuffers in Java facilitates high-speed data serialization/deserialization, eliminating parsing overhead. Developed by Google, it offers a schema-less, memory-efficient solution for…
Read More »