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

 

 

1.x to 2.x migration: Observable vs. Observable: RxJava FAQ

The title is not a mistake. rx.Observable from RxJava 1.x is a completely different beast than io.reactivex.Observable from 2.x. Blindly upgrading rxdependency and renaming all imports in your project will compile (with minor changes) but does not guarantee the same behavior. In the very early days of the project Observable in 1.x had no notion of backpressure but later on backpressure was included. What does it actually ...

Read More »

What is javax.ws.rs.core.context? [ Part 1 ]

java-interview-questions-answers

How to use the @Context annotation The JAX-RS API provides a very handy mechanism to inject a range of useful resources, such as HTTP Headers, into your endpoint. [email protected] is an all purpose annotation that injects instances of the following objects: HttpHeaders -> HTTP header parameters and values UriInfo -> Captures path variables and query parameters SecurityContext -> Provides access to ...

Read More »

Concourse caching for Java Maven and Gradle builds

Concourse CI 3.3.x has introduced the ability to cache paths between task runs. This feature helps speed up tasks which cache content in specific folders – here I will demonstrate how this feature can be used for speeding up maven and gradle based java builds. The code and the pipeline that I am using for this post is available at my github repo here – ...

Read More »

Default and private methods in Interfaces

In this tutorial we will look at default and private methods within interfaces. Default methods were added in Java 8 allowing methods to be added to an interface that comes with a default implementation that could be used, overridden or ignored without causing issues to existing classes that have implemented an interface. Private methods were missing when default methods were ...

Read More »

How to convert a lambda expression to method reference in Java 8?

If you have been coding in Java 8 then you know that using method reference in place of lambda expression makes your code more readable, hence it is advised to replace lambda expression with method reference wherever possible, But, the big question is, how do you find whether you can replace a lambda with method reference? Yes, it’s not that easy, ...

Read More »

New Java Webinar: How Comcast Automates Production Debugging to Serve over 10 Million XFINITY Users

How does Comcast automate deployments without compromising the reliability of the X1 Platform for XFINITY TV? Automated workflows are becoming a golden standard for delivering top quality products in an agile environment. End users expect to receive updates faster, and product teams need to move quickly without compromising on product quality. To achieve that on the engineering side, any new ...

Read More »

JAX-RS vs Spring for REST Endpoints

spring-interview-questions-answers

Hate building auth? Okta makes it fast and straightforward to implement user management in your Java app. Get authentication, authorization, and user analytics working in minutes. Try the APIs Free! Let’s Compare: JAX-RS vs Spring for REST Endpoints Need to decouple your web service and client? You’re probably using REST endpoints, and if you’re a Java shop you’ve probably tried ...

Read More »

How to create a thread-safe ConcurrentHashSet in Java 8?

Until JDK 8, there was no way to create a large, thread-safe, ConcurrentHashSet in Java. The java.util.concurrent package doesn’t even have a class called ConcurrentHashSet, but from JDK 8 onwards, you can use newly added keySet(default value) and newKeySet() method to create a ConcurrentHashSet backed by ConcurrentHashMap. Unlike tactical solutions like using concurrent hash map with dummy value or using ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns