Currently browsing category

Core Java, Page 4

java_nio_channels

Java NIO Channels

Java NIO Channels Channels are conduits through which I/O transfers and buffers are either the sources or the targets of those data …

java_nio_buffers

Java NIO Buffers

Java NIO Buffers NIO Buffers provide a mechanism to store a set of data elements in a in-memory container. A buffer is …

java_nio

Java NIO Tutorial The New Input/Output (NIO) was introduced with Java Development Kit (JDK 1.4 codename Merlin) back in February 2002. Its goal was to address many of the shortcomings of the original standard Java I/O … → January 9, 2015

GuavaOptionalClass

Guava Optional Class Example

Problem with Null Pointers — using Guava’s Optional Class Ever since I can remember NullPointerExceptions (NPEs) have been a source of frustration …

Custom Number Formatting in Java

In this example we will show you how to use the NumberFormat and DecimalFormat classes to format numbers using special patterns.  We …