List/Grid Core Java Subscribe to the RSS feed of category Core Java

Power of Java MemoryMapped File
Power of Java MemoryMapped File In JDK 1.4 an interesting feature of Memory mapped file was added to Java, which allows to map any file to OS memory for efficient reading. A memory ...

Five advanced Java Synchronizers you probably don’t know
Besides the common synchronize which is based in the lock bit that every Java object has, you have more sophisticated synchronizers in java, such as:Semaphore – Use the concept ...

Lazy sequences implementation for Java 8
I just published LazySeq library on GitHub – result of my Java 8 experiments recently. I hope you will enjoy it. Even if you don’t find it very useful, it’s still ...

Look At It Carefully And You Will Find Something To Improve
I propose you an exercise: when you come back to work tomorrow morning, navigate through the source code of your project and try to find opportunities of refactoring. Do it even if ...

Minor Gotchas from migration to Java 7
After several years of pushing, we are finally starting to pull our application out of the dark ages in terms of software levels and one of those steps is upgrading our Java version ...

Java Reflection oddities with inner class constructor parameters
About Java inner classes Java allows member classes (classes that are defined inside other classes), local classes (classes that are defined inside statement blocks) and anonymous classes ...

Java 8: CompletableFuture in action
After thoroughly exploring CompletableFuture API in Java 8 we are prepared to write a simplistic web crawler. We solved similar problem already using ExecutorCompletionService, Guava ...

Java 8: Definitive guide to CompletableFuture
Java 8 is coming so it’s time to study new features. While Java 7 and Java 6 were rather minor releases, version 8 will be a big step forward. Maybe even too big? Today I will ...

Building smart Builders
When building an API, you should always think about who is going to use it. When the API is simply and clear to use, then the users are happy. When the users are happy then everyone ...

Train Wreck Pattern – A much improved implementation in Java 8
Venkat Subramaniam at a talk today mentioned about Cascade Method pattern or Train Wreck pattern which looks something like: >someObject.method1().method2().method3().finalResult() Few ...

