Home » Java » Page 60

Java

Hands on Optional value

Optional is in air due to coronavirus, everything is becoming optional like optional public gathering , optional work from home, optional travel etc. I though it is good time to talk about real “Optional” in software engineering that deals with NULL reference. Tony Hoare confessed that he made billion dollar mistake by inventing Null. If you have not seen his ...

Read More »

JavaFX Tip 32: Need Icons? Use Ikonli!

Motivation I have been coding JavaFX applications and libraries since 2013 and one thing they all had in common was that I needed to find good icons / graphics that I could use for them. As a former Swing developer I started by using image files, GIFs or PNGs. Normally I would license a library like the “O-Collection” from IconExperience ...

Read More »

An AWS Elasticsearch Post-Mortem

java-interview-questions-answers

So it happened that we had a production issue on the SaaS version of LogSentinel – our Elasticsearch stopped indexing new data. There was no data loss, as elasticsearch is just a secondary storage, but it caused some issues for our customers (they could not see the real-time data on their dashboards). Below is a post-mortem analysis – what happened, ...

Read More »

Kogito, ergo Rules: From Knowledge To Service, Effortless

Welcome to another episode of this blog series on the Kogito initiative and our efforts to bring Drools to the cloud. The goal of these posts is to gather early user feedback on the features we are delivering to Kogito. In this post we present two new ways to realize a complete intelligent service: self-contained rule servicesintegrated intelligent workflows with ...

Read More »

Difference between save vs persist and saveOrUpdate in Hibernate

Save vs. saveOrUpdate vs. persist in Hibernate What is the difference between save and saveOrUpdate or Difference between save and persist are common interview question in any Hibernate interview, much like the difference between get and load method in Hibernate. Hibernate Session class provides a couple of ways to save an object into the database by methods like save, saveOrUpdate, ...

Read More »

How to create immutable Map in Java

Hello Friends, In this tutorial, we will see how we can create an immutable Map in Java. – What does it mean by immutable class or object? – What is an Immutable Map? – How to create an immutable Map in java? What does it mean by immutable class or object? An immutable class or object is a class or ...

Read More »

New features between Java 8 and Java 14

Since version 9, Java has new features every 6 months and it’s very hard to keep track of these new changes. Most of the information on the internet describes changes between the last 2 Java versions. However, if you’re in a similar situation as me, you’re not using the last Java version but a version several releases older. Then it’s ...

Read More »

Prefixed Naming

If you look at the source code of Takes or Cactoos for the first time, you most probably, like many others, will be triggered by the naming convention, which implies that most class names have two-letter prefixes: BkSafe, RqFake, RsWithStatus, TkGzip, and so on. To be honest, I haven’t seen a single Java developer who would be comfortable with this ...

Read More »