ZOFTINO.COM android and web dev tutorials

Java Asynchronous IO NIO2

Like asynchronous programming used for any other operations, asynchronous IO makes it possible for a program to perform other operations while performing IO operations or execute multiple IO operation concurrently.

Java Memory Mapped Files

A segment of virtual memory containing a part of a file which exists on the disk or other file resource is called memory mapped file.

Java File System Watcher Example

Java NIO API provides framework that allows you to create components which can monitor file system for changes.

Java Random Access Files

Java IO and NIO APIs allow you to randomly access files to read content from and write content to files anywhere in the files.

Java File Input Output Using NIO2 API

To access files, file attributes and file system, Java provides classes and interfaces (new IO API called NIO2) which exist in the java.nio.file and java.nio.file.attribute packages.

Java NIO Tutorial

Java new input output library allows you to perform input and output operations efficiently. Unlike Java I/O classes which read and write data byte by byte using stream objects, Java NIO reads and writes data in blocks using channels which use operating system features.

Java Scanner Tutorial

Scanner class breaks its input into tokens using the default or the specified delimiter and the tokens can be accessed using various next methods to get different types of values.

Java Input Output Character Streams

Java I/O stream API allows you to read and write different types of data from and to different types of sources and destinations.

Java Input Output Byte Streams

Java input and output stream API provides classes to read data from any source and to write data to any destination. Data can be bytes, primitive types, localized characters and objects.

Java Exceptions

In any program, there can be lines of code which may not be executed in certain situations. If run time environment faces this situation it will terminate the program.

Java Generics

Generics allows you to create classes or methods in a generic way so that the same code can be used with related types.

Java Strings

In Java, primitive data type char stores one character. To store text which contains more than one character, Java provides String class.