(Read this article on the blog)
Last updated on 2023/09/22 to include changes up to JDK 21.
This article is also available in Chinese by Alex Tan.
Since the release of version 8, up to ver… Read More
Quick Summary:
Structural design patterns in Java organize classes and objects, promote code reusability, and simplify complex systems. They decouple components, manage relationships, and e… Read More
Quick Summary:
Creational design patterns in Java encompass Singleton, Factory Method, Abstract Factory, Builder, and Prototype. These patterns provide flexible and structured approaches to… Read More
If you ever implemented Serializable interface in Java then you would have seen the warning “The serializable class XXX does not declare a static final serialVersionUID field of t… Read More
In this short post, I will be sharing how to generate serialVersionUID in eclipse ide, IntelliJ IDEA, and using the built-in JDK command for serialization class in Java. Let's dive deep into… Read More
In this short post, I will be sharing how to generate serialVersionUID in Intellij Idea. In IntelliJ Idea, we need to manually enable the auto-generate serialVersionUID option. It is tested… Read More
In this post, we will see how to generate SerialVersionUID in Intellij.
There are multiple ways to do it. Let’s go through them.
Using find action
You can generate SerialVersionUID in… Read More
(Read this article on the blog)
Last updated on 2022/04/26 to include changes up to JDK 18.
This article is also available in Chinese by Alex Tan.
Since the release of version 8, up to ver… Read More
In this post, I will be sharing the most frequently asked java interview questions for 5 to 6 years experienced. I have covered the questions from topics such as Java 8, Serialization, Desig… Read More
Introduction to Spring Boot Exception Handling
The following article provides an outline for Spring Boot Exception Handling. In spring boot, we have a mechanism to handle the exceptions glo… Read More
Introduction to Servlet in Java
Servlet in Java can be described in many ways. As a technology, the servlet is used to create web pages; as an API, which provides interfaces, etc. It is use… Read More
If you have done coding in tech industry then you may have gone through the serialVersionUID listed in the java class. Today, I will uncover what is serialVersionUID and why do we need it?Re… Read More
In this article, we will discuss java.lang.ClassNotFoundException. This ClassNotFoundException is thrown when the classloader can not load the class from the system. ClassLoader is the class… Read More
1. Introduction
Hibernate is an ORM tool that allows us to map our model classes with DB tables
. But what happens if what we want to map is a view
instead of a table? In principle… Read More
1. Introduction
Batch processes (or batch processes) are those programs that are launched in a programmed manner and do not require any type of human intervention. They tend to be relat… Read More
By extending/using the class 'javax.ws.rs. WebApplicationException’, you can return exceptions with http status code (or) customize error handling.For example,public class RestExceptio… Read More
In this tutorial, we will incrementally build a simple Spring MVC 3 application that generates excel templates and imports the filled excel workbook and saves the data. Apache POI is… Read More