Home » Java » Page 4

Java

How to do GC Log analysis?

Analyzing garbage collection log provides several advantages like: Reduces GC pause time, reduces cloud computing cost, predicts outages, provides effective metrics for capacity planning. To learn about the profound advantages of GC log analysis, please refer to this post. In this post let’s learn how to analyze GC logs? Basically, there are 3 essential steps when it comes to GC log ...

Read More »

Java 15 – Text blocks

Text blocks are all about writing multi-line strings in a clean and readable way. This was added as part of JEP 378 in Java 15. One can read the detailed information of the feature from the JEP details. In this post, I will show you how to use text blocks and some things to keep in mind while using them. Firstly, the ...

Read More »

Difference between Function.andThen and Function.compose

here are two different ways to mix functions in Java: using andThenusing compose It is important to understand the difference between the two. andThen: function1.andThen(function2) will first apply function1 to the input and the result of this will be passed to the function2. compose: function1.compose(function2) will first apply the input to the function2 and the result of this will be passed to the function1 When they are used for operations that are ...

Read More »

Guide To TestNG Assertions in Selenium Based Test Automation

We all know that testing is a major part of SDLC which can be performed either manually or in an automated manner. No matter which testing type we adopt, it is important to know where exactly we are getting application blockers while testing. Knowing application blockers becomes a bit easy while testing an application manually as a human touch is ...

Read More »

Calculations in Quarkus Qute using AtomicInteger

java-interview-questions-answers

Quarkus’ Qute Templating Engine is very handy for creating server-side rendered pages. Besides the regular loops and control structures, there’s also a possibility to set and update variables, at least with a small trick. In the following, we’ll see how to do some arithmetic calculations using Java’s AtomicInteger. Usually, you can invoke methods of objects that are passed to Qute, ...

Read More »

Google Cloud Java Client – ApiFuture to Reactive types

java-interview-questions-answers

 Google Cloud Java Client libraries use a ApiFuture type to represent the result of an API call. The calls are asynchronous and the ApiFuture type represents the result once the call is completed. If you have used Reactive stream based libraries like Project Reactor, a big benefit of using the Reactive types like Mono and Flux is that they provide ...

Read More »

Release a Gradle Project Using GitLab CI/CD Pipeline

I’ll show you how to configure Gradle build for a Java/Scala project and integrate it with GitLab CI/CD so that it can be automatically released and published to a Maven repository. The example uses Axion release Gradle plugin to manage version number using git tags and Maven Publish Gradle plugin to upload artifacts to a Maven (Nexus) repository. As an ...

Read More »

Did You Know the Fastest Way of Serializing a Java Field is not Serializing it at All?

This article elaborates on different ways of serializing Java objects and benchmarks performance for the variants. Read this article and become aware of different ways to improve Java serialization performance. In a previous article about open-source Chronicle Queue, there was some benchmarking and method profiling indicating that the speed of serialization had a significant impact on execution performance. After all, ...

Read More »

What is Selenium 4? The latest in Selenium Automation Testing for browsers

Introduction Every business needs an effective software testing strategy to develop high-performing quality products in less time. Software automation testing has become feasible with the help of Agile and DevOps technologies. The introduction of reusable test suites and robust automation frameworks make the testing process quicker. We all know that Selenium is a widely used tool for cross-browser web automation ...

Read More »