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 ....

QOTD: Java Thread vs. Java Heap Space

java-logo

The following question is quite common and is related to OutOfMemoryError: unable to create new native thread problems during the JVM thread creation process and the JVM thread capacity. This is also a typical interview question I ask to new technical candidates (senior role). I recommend that you attempt to provide your own response before looking at the answer.   ...

Read More »

@Cacheable overhead in Spring

spring-interview-questions-answers

Spring 3.1 introduced great caching abstraction layer. Finally we can abandon all home-grown aspects, decorators and code polluting our business logic related to caching.                   Since then we can simply annotate heavyweight methods and let Spring and AOP machinery do the work: @Cacheable("books") public Book findBook(ISBN isbn) {...} "books" is a cache ...

Read More »

Android: Loaders versus AsyncTask

android-logo

One of the biggest pieces of Android that I have neglected to learn about would be Loaders. Seeing as it’s time for me to learn it, perhaps I can help you out a bit with it as well. My main interest with the Loader concept is how it melds with the tried and true AsyncTask, and if it’s really better ...

Read More »

The Importance of Packages

java-logo

I remember approximately 15 years ago when I started learning Java. I read a lot about this ‘package’ thing and ‘namespaces’ and I totally didn’t get it. Sad thing is: While some aspects of package are understood by pretty much everybody in the industry others aren’t. So lets have a look what packages are good for.         ...

Read More »

Gradle – A Maven perspective

gradle-logo

As reader’s of my blog would know I am a bit of a Maven fanboy. I had started using Maven around 2007-8 and have never looked back. However, as is the case with everything else ‘change is the only constant’. There are other players in this area now, and Gradle looks to be the most promising of the lot. I ...

Read More »

Continuous Deployment: Are You Afraid It Might Work?

devops-logo

I’ve been wondering for a few years now, why it’s so hard to get companies to prioritize the work that I feel is important. I mean, I’m telling you how to do it and you aren’t listening – don’t you want to build quality software? Would you listen to that argument? I wouldn’t. Everybody has an opinion about how to ...

Read More »

Java heap space, native heap and memory problems

java-logo

Recently, I was discussing with a friend, why the Java process uses more memory than the maximum heap that we set when starting the java process. All java objects that code creates are created inside Java heap space, which its size is defined by the -Xmx option. But a java process is consisted by many spaces, not only by the ...

Read More »

Seven Tips For Using Third-Party Libraries

software-development-2-logo

There are many good reasons to use code written by others in your application. This post describes some best practices to optimize your re-use experience.                   Library Use Gone Bad I recently discovered that a library we use for OpenID didn’t handle every situation properly. When I checked for an update, I ...

Read More »

Integrating Bean Validation with JAX-RS in Java EE 6

java-interview-questions-answers

JavaBeans Validation (Bean Validation) is a new validation model available as part of Java EE 6 platform. The Bean Validation model is supported by constraints in the form of annotations placed on a field, method, or class of a JavaBeans component, such as a managed bean. Several built-in constraints are available in the javax.validation.constraints package. The Java EE 6 Tutorial ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close