Home » Java » Core Java » Page 12

Core Java

Log4j Bug – Slows down your app

Recently we were troubleshooting a popular SaaS application. This application was slowing down intermittently. To recover from the problem, the application had to be restarted. This application was slowing down sometimes during high traffic volume periods; sometimes during low traffic periods as well. There was no cohesive pattern.  This sort of application slowing down and restarting it was going on ...

Read More »

Introduction to HTTP/2 support in Java 9

1. Introduction The IETF streaming group approved the HTTP/2 protocol in 2015, sixteen years after HTTP/1.1 had been released. HTTP/2 comes with the promise of lowering latency and makes many of those workarounds obsolete which were necessary for HTTP/1.1 in order to be able to keep up with today’s response time requirements. In this article, I introduce HTTP/2 briefly and ...

Read More »

A Quick Guide to Java on Netty

Easily deploy your app with Okta’s identity management platform Use Okta’s API to authenticate, manage, and secure users in any app within minutes. Try Okta today. Netty is a non-blocking input/output (NIO) framework that makes it relatively simple to develop low-level network servers and clients. Netty provides an incredible amount of power for developers who need to work down on ...

Read More »

Two Common Concurrency Bugs

As a Baeldung editor, I had the pleasure working with an author on an article on Common Concurrency Pitfalls in Java. This is a great read, but assumes a certain amount of competence on the part of the developer. There are a couple of things I’ve seen which are instant concurrency fails. They’re easy to add to the code, and ...

Read More »

Manage multiple Java SDKs with SDKMAN! with ease

SDKMAN! is a convenient tool for managing parallel versions of multiple Software Development Kits. The tool is especially useful for Java developers as it supports SDKs for the JVM such as Java, Groovy, Scala, Kotlin and Ceylon. Gradle, Maven, Spring Boot and many others are also supported. Manage Java VersionsInstall Maven and GradleInstall Spring Boot CLILinks SDKMAN! is supported for ...

Read More »

General, Safe, and Deterministic Foreign Memory Access in JDK 14

In the post “JDK 14 Rampdown: Build 27,” I summarized the numerous JDK 14-targeted features newly available with JDK 14 Early Access Build #27. There is already another JDK 14 Early Access Build available and this one [Build 28 (2019/12/18)] includes one particularly interesting feature: Enhancement JDK-8234049 [“Implementation of Memory Access API (Incubator)”]. This is the implementation of JEP 370 ...

Read More »

Kafka with Java: Build a Secure, Scalable Messaging App

Easily deploy your app with Okta’s identity management platform Use Okta’s API to authenticate, manage, and secure users in any app within minutes. Try Okta today. Today’s users expect your app to be accessible from their computer, mobile phone, tablet, or any other device! This transition to Software as a Service (SaaS) as the norm requires developers to effectively integrate ...

Read More »

JDK14 instance of EA issue

Tagir Valeev recently had a tweet about the preview feature of the soon coming JDK14 release of Java:             #Java14 pattern matching brings name shadowing to the next level of craziness. Here I add or remove the `final` modifier for the `FLAG` field, which is accessed only in unreachable `if` branch. This actually changes the ...

Read More »

JDK 14 – JEP 361 Switch Expressions out from preview

In my previous post, I wrote about switch expressions and related enhancements released as a preview feature for JDK 12. Subsequently, in JDK 13 there were some changes proposed, like using yield keyword to return value from the switch block and released in preview. In the upcoming JDK 14 release, which will go GA in March next year, these changes ...

Read More »