Home » Java

Java

KivaKit and AWS Lambda

java-interview-questions-answers

KivaKit 1.2 adds seamless support for AWS Lambda. Lambdas for REST and GRPC can be added to a KivaKit Microservice without alteration (which will make this a short article). Creating a Lambda We have already seen a KivaKit request handler for REST in the Microservices article. We will simply reuse this code as our Lambda request handler. As a reminder ...

Read More »

KivaKit Clustering

java-interview-questions-answers

KivaKit Clustering   KivaKit provides built-in support for clustering of microservices using Apache Zookeeper. It supplies a cluster model that is updated as members join and leave the cluster, and an implementation of the SettingsStore interface that stores settings in Zookeeper. Joining and Leaving a KivaKit Microservice Cluster To use KivaKit in a cluster, Apache Zookeeper must be running according ...

Read More »

Java ArrayList Insert/Replace At Index

A quick guide to insert or replace the element at the specified index in java. 1. Overview In this tutorial, We’ll learn how to insert or replace an element at a specified index into ArrayList java. Use the ArrayList.add(int index, Object value) method to add any object or element at the specific index of ArrayList and use ArrayList.set(int index, E  ...

Read More »

[Fixed] Java lang exceptionininitializererror com sun tools javac code typetags

A quick guide to fix java lang exceptionininitializererror com sun tools javac code typetags with maven. 1. Overview In this tutorial, We’ll learn how to fix the error “Java lang exceptionininitializererror com sun tools javac code typetags” when working with maven build. How to create maven project? 2. Fix 1 – Java lang exceptionininitializererror com sun tools javac code typetags ...

Read More »

Java Program to Find the Biggest of 3 Numbers

A Simple Java Program To Find Largest Of Three Numbers. 1. Overview In this w3schools java programming series, You’ll be learning today how to find the biggest of 3 numbers. This is also a very basic interview question. But the interviewer will look for the optimized and fewer lines code. We will show you all the possible programs and how ...

Read More »

The Log4Shell vulnerability and how to fix it

Since Friday, the Java and general IT world has been in a bit of turmoil after a zero-day vulnerability in the widely-used logging framework Log4j has been disclosed. The vulnerability enables remote code execution (RCE) and affects, well, a lot of Java applications. What happens in a nutshell is that one can trigger a remote code execution by providing a string in ...

Read More »

Log4Shell: Apache Log4j Vulnerability

Apache Log4j is a popular logging library used across the JVM ecosystem. On Dec 10 2021, a high severity vulnerability was disclosed, dubbed Log4Shell. If you are using a version of Log4j between 2.0 and 2.15.0, an RCE (Remote Code Execution) attack is possible. An attacker can perform a malicious Java Naming and Directory Interface (JNDI) object lookup to chain other exploits if your code ...

Read More »

Get to Know Jakarta MVC

java-interview-questions-answers

To help you get to know the Jakarta MVC specification, here’s a recap of its history and status, and a brief introduction to the technology. Jakarta MVC History and Status The story of Jakarta MVC started back in 2014 when Java Specification Request (JSR) 371 was proposed in the Java Community Process. The work progressed very well, and the specification became popular ...

Read More »