Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

and many more ....


Java Thread Pool Example using Executors and ThreadPoolExecutor


A thread pool manages the pool of worker threads, it contains a queue that keeps tasks waiting to get executed. A thread pool manages the collection of Runnable threads and worker threads execute Runnable from the queue. java.util.concurrent.Executors provide implementation of java.util.concurrent.Executor interface to create the thread pool in java. Let’s write a simple program to explain it’s working. First ...

Read More »

ETags for REST with Spring


1. Overview This article will focus on ETags – the Spring support, integration testing of the RESTful API, and consumption scenarios with curl. This is the ninth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration.             The REST with ...

Read More »

Scala: Do you partially understand this?


Nearly everyone who learns Scala can get confused over the word partial used in the contexts: Partial functions Partially applied functions Let’s look at both. Partially applied functions Scala gets its functional ideas from classical languages such as Haskell (Haskell 1.0   appeared in same year as Depeche Mode’s Enjoy the Silence and Dee Lite’s Groove is in the Heart ...

Read More »

Towards a Theory of Test-Driven Development


This post examines how well we really understand the practice of Test-Driven Development (TDD).                   Red, Green, Refactor By now we all know that Test-Driven Development (TDD) follows a simple cycle consisting of these steps: Start by writing a test. Since there is no code, it will fail (Red) Write just enough ...

Read More »

Processing huge files with Java


I recently had to process a set of files containg historical tick-by-tick fx market data and quickly realized that none of them could be read into memory using a traditional InputStream because every file was over 4 gigabytes in size. Emacs couldn’t even open them. In this particular case I could write a simple bash script that divide files into ...

Read More »

Clojure: Reading and writing a reasonably sized file


In a post a couple of days ago I described some code I’d written in R to find out all the features with zero variance in the Kaggle Digit Recognizer data set and yesterday I started working on some code to remove those features. Jen and I had previously written some code to parse the training data in Clojure so ...

Read More »

MapReduce Algorithms – Secondary Sorting


We continue with our series on implementing MapReduce algorithms found in Data-Intensive Text Processing with MapReduce book. Other posts in this series: Working Through Data-Intensive Text Processing with MapReduce Working Through Data-Intensive Text Processing with MapReduce – Local Aggregation Part II Calculating A Co-Occurrence Matrix with Hadoop MapReduce Algorithms – Order Inversion       This post covers the pattern ...

Read More »

Hibernate Search 4.2 final released: spatial query supported


JBoss has announced the release of Hibernate Search 4.2 final. You may download it from Sourceforge or use the Maven artifacts. In the new release, some interesting features are included: Hibernate Search now supports spatial queries. With the Spatial extensions you can combine fulltext queries with restrictions based on distance from a point in space, filter results based on distances ...

Read More »

Garbage Collection Analysis of PCGen


Introduction I decided to combine two software loves of mine and perform some analysis on PCGen, a popular Java based open source character generator for role-playing games. I used Censum, our ( jClarity‘s) new Garbage Collection log analysis tool to perform the analysis. This write-up assumes you have a passing familiarity with Garbage Collection (GC) on the JVM. If you’re ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.