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

 

 

Mutual Problems

java-logo

The HTTPS protocol is the well-established standard for securing our connections. Understanding how this protocol works is not a problem and the corresponding RFC document is available since 2000. Despite HTTPS is used so widely, you can still find a software which doesn’t handle this protocol without unnecessary complexity. Unfortunately I’v experienced problems during the implementation of mutual authentication in ...

Read More »

Implement a SciPy Stack Docker Image

docker-logo

SciPy is a powerful python library, but it has many dependencies including Fortran. So Running your Scipy code in a docker container makes absolute sense. We will use a private registry: docker run -d -p 5000:5000 --name registry registry:2 I will use a Centos image. Centos is a very popular linux distribution based on RedHat which is a commercial Linux ...

Read More »

Can Event Streaming Make My Business More Productive?

software-development-2-logo

Editor’s Note: Download the free O’Reilly ebook, “Streaming Architecture: New Designs Using Apache Kafka and MapR Streams” to learn how event streaming can make your business more productive. Can we agree at the outset that modern businesses rely heavily on data to make critical decisions, and the ability to make decisions in real time is very valuable? Good. So what keeps us from ...

Read More »

Java: Immortal Objects and Object Resurrection

java-logo

What is Object Resurrection? A Java object is eligible for Garbage Collection when no other object references the object. When the JVM:s Garbage Collector eventually is about to remove an unused object, the object’s finalize() method is invoked. But, if we re-create a reference to the object again in the object’s own finalize() method, the object can be resurrected. In ...

Read More »

Watch Out For Recursion in Java 8’s [Primitive]Stream.iterate()

java-logo

An interesting question by Tagir Valeev on Stack Overflow has recently caught my attention. To keep things short (read the question for details), while the following code works: public static Stream<Long> longs() { return Stream.iterate(1L, i -> 1L + longs().skip(i - 1L) .findFirst() .get()); } longs().limit(5).forEach(System.out::println); printing 1 2 3 4 5 The following, similar code won’t work: public static ...

Read More »

Java 8: Declare Private and Protected Methods in Interfaces

java-logo

When Java 8 was introduced, we could use default methods in interfaces. The main driver for this feature was to allow expansion of an interface while retaining backward compatibility for older interface versions. One example is the introduction of the stream() method in the existing Collection classes. Sometimes, when we want to introduce several default methods, they may share some ...

Read More »

Put Your Java 8 Method References to Work

java-logo

Method References As we all know by now, we can use Method References, like String::isEmpty, in Java 8 to reference a method that is being used when we, for example, stream over elements. Take a look at this code snippet: Stream.of("A", "", "B").filter(Stream::isEmpty).count(); which will produce the result 1 (because there is just one empty element in the stream). But, ...

Read More »

Create UML diagrams with simple DSL – PlantUML

software-development-2-logo

Historically I disliked creating design UML diagrams, because the tooling for it mostly requires drawing boxes and connecting them with lines or arrows. I find such workflow very time consuming and wasteful. This short blog post will describe much better way to create UML diagrams. But first of all, you may argue that UML importance in today’s agile software development ...

Read More »

Verifying DateTime and Date with Hamcrest

hamcrest-logo

Since I started diving into automated testing and practicing TDD, verification of date values was pain. Luckily there is nice library for legacy Date and new Java 8 DateTime APIs, which cures this pain. If you belong to healthier part of Java development community and practicing unit testing on daily basis, you probably are aware of Hamcrest Java library. It ...

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