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:

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 »

Configuring HTTPS for use with Servlets

java-interview-questions-answers

To configure your Java EE application to communicate over HTTPS requires a few lines of XML in the web.xml file. The web.xml file is located in the WEB-INF directory of your project and is usually created automatically when your IDE generates a Java EE web application. If it is not you can create it yourself. Motivation for HTTPS The reasons ...

Read More »

Refactoring stringly-typed systems

Last year I joined a project that was taken over from another software house that failed to satisfy client demands. As you can probably tell there were many things that could and should be improved in that “inherited” project and its codebase. Sadly (but not surprisingly) the domain model was one of such orphaned, long-forgotten areas that screamed for help ...

Read More »