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

Java8 Sorting – Performance Pitfall

java-logo

Java 8 brings all the goodness of lambdas to enable us to program using a declarative style. But is it really free? And should we be concerned about the price we have to pay for the new programming goodies? Here’s an example where we might have to worry. Consider sorting instances of this simple class:           ...

Read More »

The CHAOS Report and #NoEstimates

agile-logo

You know what’s the best way to start the year? Going over success rates of projects! The Standish Group has been publishing the CHAOS report for more than twenty years now. I wasn’t surprised to find that they still use the same criteria for success and failure of projects. Here’s a summary of the CHAOS definition:         ...

Read More »

JAX-RS 2.0 : Server side Processing Pipeline

java-interview-questions-answers

The inspiration for this post was the Processing Pipeline section in the JAX-RS 2.0 specification doc (Appendix C). I like it because of the fact that it provides a nice snapshot of all the modules in JAX-RS – in the form of a ready to gulp capsule !                 So I thought of ...

Read More »

Unit Testing in AEM (thinking loud)

java-logo

This is not a recommendation of any sorts but a culmination of ideas and a few options that are available for us to use if we want to do unit testing within AEM. I had done some research for a client some time back and this article is largely influenced by that work but a lot of contextual stuff has been ...

Read More »

EE Servlet 3: How to Setup Backend Services in a Web Application

java-interview-questions-answers

In a web application, providing user interfacing (UI) is often only half of the job. Many applications have requirements that’s supported by backend services. Some example of backend services are scheduler process (batch processing), listen to a queue and respond when messages come in, or simple thing such as storing information for the entire application to use. These global data ...

Read More »

My favourite Java puzzler 2 + 1 = 4

java-logo

Here’s  my current favourite Java puzzler. How can you get your code to do this?                     Integer b = 2; Integer c = 1; System.out.println("b+c : " + (b+c) ); // output: 'b+c : 4' !! There are no tricks with Sytem.out.println() i.e. you would be able to see the same ...

Read More »

Docker container linking across multiple hosts

docker-logo

Docker container linking is important concept to understand since any application in production will typically run on a cluster of containers across multiple hosts. But simple container linking does not allow cross-host communication. Whats the issue with Docker container linking? Docker containers can communicate with each other be manually linking as shown in Tech Tip #66 or orchestrated using Fig as shown in Tech Tip #68. Both of ...

Read More »

JBoss Data Virtualization 6.1 Beta Now Available

java-interview-questions-answers

JBoss Data Virtualization (JDV) is a data integration solution that sits in front of multiple data sources and allows them to be treated as a single source.  Do do that, it offers data abstraction, federation, integration, transformation, and delivery capabilities to combine data from one or multiple sources into reusable and unified logical data models accessible through standard SQL (JDBC, ODBC, ...

Read More »

Fail-fast validations using Java 8 streams

java-logo

I’ve lost count of the number of times I’ve seen code which fail-fast validates the state of something, using an approach like:                     public class PersonValidator { public boolean validate(Person person) { boolean valid = person != null; if (valid) valid = person.givenName != null; if (valid) valid = person.familyName != ...

Read More »

First rule of performance optimisation

software-development-2-logo

Let’s start with a system with no obvious performance bottlenecks.  By that I mean that there are no glaring algorithmic problems which are grinding your system to a halt.  e.g. a tight loop which is reading a property from a file without caching the result. You want your system to run as fast as possible, where do you start?  Most ...

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