We discuss tools that help deploy your Maven applications to Kubernetes and Red Hat OpenShift, and then walk through an example.
Category: Articles
Parallel Infinite Java Streams run out of Memory
I’m trying to understand why the following Java program gives an OutOfMemoryError, while the corresponding program without .parallel() doesn’t. System.out.println(Stream .iterate(1…
Enforcing Java Record Invariants With Bean Validation
Record types are one of the most awaited features in Java 14; they promise to “provide a compact syntax for declaring classes which are transparent holders for shallowly immutable data”. One example where records should be beneficial are data transfer objects (DTOs), as e.g. found in the remoting layer of enterprise applications. Typically, certain rules should be applied to the attributes of such DTO, e.g. in terms of allowed values. The goal of this blog post is to explore how such invariants can be enforced on record types, using annotation-based constraints as provided by the Bean Validation API.
Inheritance versus composition: How to choose
Compare two fundamental ways to relate classes, then practice debugging ClassCastExceptions in Java inheritance
10 Examples of ConcurrentHashMap in Java
A blog about Java, Spring, Hibernate, Programming, Algorithms, Data Structure, SQL, Linux, Database, JavaScript, and my personal experience.
Java EE Guardians become Jakarta EE Ambassadors – JAXenter
The community of Enterprise Java supporters formerly known as Java EE Guardians have been undergoing own rebrand – they are now the Jakarta EE Ambassadors.
Introduction to Big Queue | Baeldung
Learn about the Big Queue, a Java implementation of a persistent queue.
Profile Remote Java Apps with VisualVM or JMC
Profile remote Java JDK apps with free tools VisualVM and JStatD through an SSH tunnel. No firewall adjustments needed. Graph heap, thread and CPU usage.
Top 10 Free Interactive Online Courses to learn Python, Java, C++ and JavaScript on Educative
A blog about Java, Programming, Algorithms, Data Structure, SQL, Linux, Database, Interview questions, and my personal experience.
Don’t ever put a non-Java LTS release into production
With the expedited Java release cadence in full swing, a non-Java LTS release put into production makes little to no sense. Don’t find yourself in an unsupported situation because updates are no longer available for older Java versions.
Java on Visual Studio Code Update – January 2020 | Java at Microsoft
In this update, we’re introducing the long-waited “Call Hierarchy” support along with some Visual Studio Code UI updates which will benefit Java developers a lot. At the same time, new features are also introduced to Debugger and Test Runner. We will also share some other improvements including performance in this post.
Keeping up with Java: Look at all these new features! – JAXenter
New Java releases are coming faster than ever, now that we are well into the new six-month release cadence. Keep up with the changes in this talk.