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 ....
I agree to the Terms and Privacy Policy

Best Of The Week – 2011 – W20

Hello guys, Time for the “Best Of The Week” links for the week that just passed. Here are some links that drew JavaCodeGeeks attention: * Using JMeter to measure binary protocols: A very useful article describing how to setup and use JMeter in order to measure the performance of custom binary protocols. This was done without writing a custom plugin ...

Read More »

MapReduce: A Soft Introduction

MapReduce is a parallel programming technique made popular by Google. It is used for processing very large amounts of data. Such processing can be completed in a reasonable amount of time only by distributing the work to multiple machines in parallel. Each machine processes a small subset of the data. MapReduce is a programming model that lets developers focus on ...

Read More »

Reasons Why Solaris Is a Great Java Development Platform

Some days ago I posted “The Death of OpenSolaris: Choosing an OS for a Java Developer” in which I stated that Solaris is a great platform for a Java developer. The point of that post was simply wondering about which Solaris version I’d use since the demise of OpenSolaris. What the post did fail in clarifying, as Neil’s comment made ...

Read More »

How does JVM handle locks

As we are talking about the latest version of Sun Hotspot Java Virtual Machine 1.6 there’re the following three types of locks performed by JVM when you try to acquire lock from java.util.concurrent.locks.Lock implementation or enter synchronized block: biased: sometimes even in concurrent systems there’s no contention and JVM shouldn’t borrow mutex from OS for perform locking in this case. ...

Read More »

Best Of The Week – 2011 – W19

Hello guys, Time for the “Best Of The Week” links for the week that just passed. Here are some links that drew JavaCodeGeeks attention: * The Highly Useful Java TimeUnit Enum: An article that explains how to use the TimeUnit enums in order to avoid “magic numbers” and produce cleaner code when manipulating date and time. * Unix Orchestration Roundup: ...

Read More »

Android: Menu Class Investigation

Android provides decent functionality for instantiating your own run of the mill Menu within the standard framework. They even have a half decent guide on using them within your applications. Most users will be well acquainted with the stock menu seeing how Google Maps, GMail, the Contacts list and even the default background window use them. As comforting as they ...

Read More »

Android JSON Parsing with Gson Revisited

A while ago we hosted an article about using Gson for JSON parsing with Android. The tutorial was a simple showcase of how to leverage Gson with Android. Recently, Bill Mote from the AYDABTU Development site contacted me and informed me that he had used our sample code in one of his Android applications, namely Broadcast SMS. More specifically, he ...

Read More »

Google App Engine: Host application in your own domain

When you create a new application in Google App Engine, you’ll get a domain name “yourapp.appspot.com”. But, who’ll want to host their app with such a suffix (unless you like it!)? To improve your app branding, the best thing to do is to host your app in “www.yourapp.com“. So, how to do this in App Engine? There are two ways. ...

Read More »

How to Avoid ConcurrentModificationException when using an Iterator

Java Collection classes are fail-fast which means that if the Collection will be changed while some thread is traversing over it using iterator, the iterator.next() will throw a ConcurrentModificationException. This situation can come in case of multithreaded as well as single threaded environment. Lets explore this scenario with the following example: import java.util.*; public class IteratorExample { public static void ...

Read More »