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:

JasperReports: The Tricky Parts

If you have been programming in Java long enough, chances are you needed to generate reports for business users. In my case, I’ve seen several projects use JasperReports® Library to generate reports in PDF and other file formats. Recently, I’ve had the privilege of observing Mike and his team use the said reporting library and the challenges they faced. JasperReports ...

Read More »

CI/CD for SpringBoot applications using Travis-CI

In this article we are going to learn how we can use Travis CI for Continuous Integration and Continuous Deployment (CI/CD) of a SpringBoot application. We will learn how to run maven build goals, perform test coverage validation using JaCoCo plugin, Code Quality checks using SonarCloud, build Dockerimage and push it to DockerHub and finally deploy it to Heroku. The source code for this article is at https://github.com/sivaprasadreddy/freelancer-kit Last week I ...

Read More »

Adding Terms to Javadoc Search with Java 9

There is a relatively old web page called “Proposed Javadoc Tags” that appears to have originally been written in conjunction with Javadoc 1.2 that lists “tags that Sun may implement in Javadoc someday.” The tags in this list are @category, @example, @tutorial, @index, @exclude, @todo, @internal, @obsolete, and @threadsafety. One of these tags, @index, has moved from “Proposed Tags” to ...

Read More »

Sample Logback Configuration for Spring Boot Profile Based Logging

java-interview-questions-answers

We would want different logging configurations for different profiles in Spring Boot, like in local running we would just want console logging and for production, we would want file logging with support for rolling the log files daily. I came up with a sample logback configuration which I use in all my applications. Create a file named logback-spring.xml in src/main/resources ...

Read More »

Use Matchers for Preconditions and Postconditions

Sorry, this is late. Excuses, excuses. I feel like I’ve seen this somewhere else once before in my life, but it the idea doesn’t seem to have spread much. That’s probably due to the lack of traction for pre- and postconditions in general. So, we’ll start with those. Preconditions and Postconditions Preconditions and postconditions are a little old-fashioned, having been ...

Read More »

Faster Sorting of Arrays of Primitives Coming to Java?

It appears that sorting arrays of primitives in Java may experience a performance improvement in the not-so-far future. Vladimir Yaroslavskiy has posted a message to the core-libs-dev mailing list titled “The new optimized version of Dual-Pivot Quicksort” in which Yaroslavskiy writes of an “optimized and faster version of Dual-Pivot Quicksort” that he has “been working on … for the last ...

Read More »

10 reasons to Learn Scala Programming Language

One of the questions my reader often ask me is, shall I learn Scala? Does Scala has better future than Java, or why Java developer should learn Scala and so on. Well, there can be many reasons for learning Scala e.g. you are forced to learn because it been used in the new company you joined or your solution architect ...

Read More »

When You Have A Blockchain, Everything Looks Like a Nail

Blockchain, AI, big data, NoSQL, microservices, single page applications, cloud, SOA. What do these have in common? They have been or are hyped. At some point they were “the big thing” du jour. Everyone was investigating the possibility of using them, everyone was talking about them, there were meetups, conferences, articles on Hacker news and reddit. There are more examples, ...

Read More »

Using @Alternative in CDI application

java-interview-questions-answers

There are many scenarios where you might want to have more that one version of a bean and use it for different purposes. The typical justification for an alternative bean is for testing purposes where the alternative bean presents mock data. The benefit it that the live system that the ‘real’ bean must connect to in order to obtain live ...

Read More »