Core Java
-
Creating files and directories in NIO.2
Great number of applications nowadays create files or directories for very wide range of purposes. Whether it is to generate…
Read More » -
Working with files and directories in NIO.2
In previous articles I discussed creation (Creating files and directories) and selection (Listing and filtering directory contents) of files and…
Read More » -
Listing a ZIP file contents with Stream API in Java 8
In Java 8 java.util.zip.ZipFile was equipped with a stream method that allows navigating over a ZIP file entries very easily.…
Read More » -
Handle Every Event in Your Akka Application
Event here, event there, events flying everywhere. Post about checking that every Akka event will finally find its home. Akka…
Read More » -
Code4ReferenceList Recently Used(LRU) implementation using LinkedHashMap
Recently I stumbled on one of the Java interview questions: “Implement List-Recently-Used (LRU) Cache using Java collection class?” If you…
Read More » -
Reactive Queue with Akka Reactive Streams
Reactive streams is a recently announced initiative to create a standard for asynchronous stream processing with built-in back-pressure, on the…
Read More » -
Writing Clean Tests – Divide and Conquer
A good unit test should fail for only one reason. This means that a proper unit test tests only one…
Read More » -
SynchronousQueue Example in Java – Producer Consumer Solution
SynchronousQueue is special kind of BlockingQueue in which each insert operation must wait for a corresponding remove operation by another…
Read More » -
Out of memory: Kill process or sacrifice child
It is 6 AM. I am awake summarizing the sequence of events leading to my way-too-early wake up call. As…
Read More »