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

 

 

Pitfalls of the Hibernate Second-Level / Query Caches

jboss-hibernate-logo

This post will go through how to setup the Hibernate Second-Level and Query caches, how they work and what are their most common pitfalls. The Hibernate second level cache is an application level cache for storing entity data. The query cache is a separate cache that stores query results only. The two caches really go together, as there are not ...

Read More »

Don’t be a Slave to Your Tools

software-development-2-logo

Developers attach quickly to tools because they are concrete and have well defined behavior.  It is easier to learn a tool than to learn best practices or methodology. Tools only assist in solving problems, they can’t solve the problem by themselves. A developer who understands the problem can use tools to increase productivity and quality. Poor developers don’t invest the ...

Read More »

Working with files and directories in NIO.2

java-logo

In previous articles I discussed creation (Creating files and directories) and selection (Listing and filtering directory contents) of files and directories. The last logical step to take is to explore what can we do with them and how. This is a part of the library that was redesigned in a big way. Updates in this area include guarantee of atomicity of ...

Read More »

Automating the Continuous Integration of Android Projects With Gradle Using Jenkins on Windows

gradle-logo

This post will show how to automate the deployment process of an Android Application using Jenkins Continuous Integration – to build the project, run the unit tests (if any), archive the built artifacts and run the Android lint reports. 1. Install Jenkins as a Windows Service Navigate to jenkins-ci.org website using an Internet browser and download the Windows native package ...

Read More »

RSS Reader Using: ROME, Spring MVC, Embedded Jetty

codehaus-jetty-logo

In this post I will show some guidelines to create a Spring web application, running it using Jetty and using an external library called ROME for RSS reading. General I have recently created a sample web application that acts as an RSS reader. I wanted to examine ROME for RSS reading. I also wanted to create the application using Spring ...

Read More »

A beginner’s guide to Hibernate Types

jboss-hibernate-logo

The basic mapping concepts When learning Hibernate many like to jump to parent-child associations without mastering the object relation mapping basics. It’s very important to understand the basic mapping rules for individual Entities before starting modelling Entity associations. Hibernate types A Hibernate type is a bridge between an SQL type and a Java primitive/Object type.   These are the types ...

Read More »

Listing a ZIP file contents with Stream API in Java 8

java-logo

In Java 8 java.util.zip.ZipFile was equipped with a stream method that allows navigating over a ZIP file entries very easily. In this blog post I will show a bunch of examples showing how quickly we can navigate over ZIP file entries. Note: For the purpose of this blog post I downloaded one of my GitHub repositories as a ZIP file ...

Read More »

15+ Useful Robotium Code Snippets for Android Test Automation

android-logo

Robotium is a powerful android test automation framework. It can be used to create robust apps using unit, functional & automatic black box UI test cases. When I first looked at Robotium, it sounded almost like Selenium (for web application). Though the names are similar, they are not related. Robotium is developed by different developer group. I have tried several ...

Read More »

Handle Every Event in Your Akka Application

akka-logo

Event here, event there, events flying everywhere. Post about checking that every Akka event will finally find its home. Akka and reactive, event-based applications are new approach to creating software. We are using Akka pretty intensively in our current Scala-based project. Events fit our use cases especially well as we are communicating with external API which might be slow. This ...

Read More »

Code4ReferenceList Recently Used(LRU) implementation using LinkedHashMap

java-logo

Recently I stumbled on one of the Java interview questions: “Implement List-Recently-Used (LRU) Cache using Java collection class?” If you have worked on a similar problem before, then it is really easy for you. Otherwise you start thinking about the best collection class to implement LRU cache. Most of the people fail to recognize that LinkedHashMap provides the support and ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns