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 ....
Email address:

Asynchronous and Transactional Event Listeners in Spring

spring-interview-questions-answers

The built-in event publication functionality exists from the early Spring versions and it is still useful for handling basic communication between Spring components in the same application context. In general, the application can generate application events (that can be arbitrary objects) and listen to them. The whole mechanism is really simple: using ApplicationPublisher you publish events and using EventListener you ...

Read More »

Neo4j: Cypher – Deleting duplicate nodes

I had a problem on a graph I was working on recently where I’d managed to create duplicate nodes because I hadn’t applied any unique constraints. I wanted to remove the duplicates, and came across Jimmy Ruts’ excellent post which shows some ways to do this. Let’s first create a graph with some duplicate nodes to play with: UNWIND range(0, ...

Read More »

5 Tips to Increase your Code Quality

Have you ever reflected on your code and wondered if you could have made it better? I’m here to tell you that you can write high-quality code, and I can show you how to do it, too. Before we get started, I want to define what exactly I mean when I say “high-quality code.” When I think of high-quality Code, ...

Read More »

Applying Google’s Android architecture with ObjectBox database

If you haven’t seen Google’s architecture, you can learn more about it here. Also, if you’re not familiar with ObjectBox, check out this post. Introduction The goal with the architecture is to end up with something like this:           The main difference is that I’ll be using ObjectBox instead of Room. The architecture doesn’t enforce any ...

Read More »

Java Variables

Variables The variable is the basic unit of storage in a Java program. A variable is defined by the combination of an identifier, a type, and an optional initializer. In addition, all variables have a scope, which defines their visibility, and a lifetime. These elements are examined next. Declaring a Variable In Java, all variables must be declared before they ...

Read More »

MVP is a marketing exercise not a technology exercise

… Minimally Viable Product Possibly the most fashionable and misused term the digital industry right now. The term seems to be used by one-side-or-other to criticise the other. I recently heard another Agile Coach say: “If you just add a few more features you’ll have an MVP” – I wanted to scream “Wrong, wrong, wrong!” But I bit my tongue ...

Read More »

Java 9: The Good, The Bad, and Private Interface Methods

Java 9 was released a few weeks ago. Check the release notes, they include many interesting features. However, I think that not everything is as good as Oracle and Java adepts seem to picture it. I see three trends in the Java world, which are good, bad, and ugly, respectively. Let’s start with the good one.         ...

Read More »