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:

Secure a Spring Microservices Architecture with Spring Security and OAuth 2.0

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Every developer wants to build faster and more efficiently, to support scale. Building a microservices architecture with Spring can add resilience and elasticity to your architecture that ...

Read More »

Pivotal Cloud Foundry Performance Monitoring

Discover faster, more efficient performance monitoring with an enterprise APM product learning from your apps. Take the AppDynamics APM Guided Tour! One of the core strengths of Pivotal Cloud Foundry is its well-established, consistent and practical method of deploying applications. PCF provides the same user experience when deployed over different IaaS layers, and the same developer experience regardless of application ...

Read More »

[MEGA DEAL] Ethical Hacking A to Z Bundle (96% off)

Break Into the Lucrative World of Ethical Hacking with Over 45 Hours of Immersive Content Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer. We are offering a massive 96% off on Ethical Hacking A to Z Bundle. Get it now with only $39, instead of the original price of $1273. Complete Ethical Hacking ...

Read More »

Top 20 Online Programming Courses to Boost your Career

Do you want to know what is the best investment you can make with your time and money? Knowledge As a software developer you should be constantly acquiring new skills. This is the best way to advance your career and enjoy the rewards (monetary, emotional etc.). Towards that direction you should be reading books, devouring technical articles and staying informed ...

Read More »

Making Pivot Tables with Java Streams from Databases

Raw data from database rows and tables does not provide so much insight to human readers. Instead, humans are much more likely to see data patterns if we perform some kind of aggregation on the data before it is being presented to us. A pivot table is a specific form of aggregation where we can apply operations like sorting, averaging, ...

Read More »

Generating Source Code, a Compromise

Source Code Generation is not Good The most important statement in this topic before we would even start to discuss anything else is that source code generation is a suboptimal solution. It may be needed and it may be a viable solution, but whenever source code is generated it could have been done some way better. It is just that ...

Read More »

New JDK 11 Files Method isSameContent()

It has been proposed that a method named isSameContents() be added to the Files class in JDK 11 via JDK-8202285 [“(fs) Add a method to Files for comparing file contents”]. Proposed by Joe Wang, this new method is “intended to be an extension to the existing isSameFile method since it stopped short of comparing the content to answer the query ...

Read More »

TestContainers and Spring Boot

spring-interview-questions-answers

TestContainers is just awesome! It provides a very convenient way to start up and CLEANLY tear down docker containers in JUnit tests. This feature is very useful for integration testing of applications against real databases and any other resource for which a docker image is available. My objective is to demonstrate a sample test for a JPA based Spring Boot ...

Read More »

The Benefits of Side Projects

Side projects are the things you do at home, after work, for your own “entertainment”, or to satisfy your desire to learn new stuff, in case your workplace doesn’t give you that opportunity (or at least not enough of it). Side projects are also a way to build stuff that you think is valuable but not necessarily “commercialisable”. Many side ...

Read More »

Scala Syntax: 7 points

A few years back I dipped into some Scala as a hobby language. But, one aspect I found challenging was just getting my head around Scala syntax again. Some of it, yeah the basic stuff can be counter intuitive depending on your perspective. 1. Method / Function Definition Typing on the right rather than the left. Consider this simple function definition: def ...

Read More »

New JDK 11 Files Methods for Reading/Writing Strings From/To Files

My previous post focused on the Files.isSameContent() method that is likely to be added to JDK 11. JDK-8201276 [“(fs) Add methods to Files for reading/writing a string from/to a file”] mentions this new method and also highlights the methods that are the subjects of this post: readString(Path) readString(Path, Charset) writeString(Path, CharSequence, OpenOption...) writeString(Path, CharSequence, Charset, OpenOption...) Joe Wang recently posted ...

Read More »

Using Java Stream summary statistics

Streams of primitive types (IntStream, etc.) provide a summaryStatistics() method that can be used to get multiple statistical properties of a stream (minimum value, average value, etc.). Assume we have a list of people. Our goal is to get the minimum and maximum age of the people in the list using streams. The problem here is that the computation of ...

Read More »