Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our YouTube channel to start Rocking right now!
Gain access to the industrys' best FREE video guides including:
1. Core Java guides
2. Enterprise Java guides
3. JVM insights, configuration and troubleshooting guides
4. Java performance guides
5. Java Interview Questions
and many 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 »

App Engine Java Development with Netbeans

If you just started with App engine development, you might be having a feeling that Eclipse is the preferred IDE. And, Google also has offered its official plug-in to Eclipse IDE alone. But what about the people who are not using Eclipse? Of course, you can always do a command line development but who does that these days!? For Netbeans ...

Read More »

Refactoring Hudson God Class

Jakub Holy, one of our JCG partners, has recently shared his experience at attempting to refactor Hudson, the main class behind the famous Continuous Integration (CI) server, now renamed to Jenkins. Let’s see what he has to say about this refactoring experience. We’ve tried to refactor Hudson.java but without success; only later have I been able to refactor it successfully, ...

Read More »