-
Core Java
Java Interface vs Annotation @interface
In Java, both interface and @interface are used to define a contract for classes, but they serve different purposes. Let…
Read More » -
Core Java
Mocking an Enum Using Mockito
When writing unit tests in Java, there are scenarios where we need to mock certain classes or behaviors to isolate…
Read More » -
Enterprise Java
Execute Scheduled Task Only Once in Spring Boot
Usually, we configure tasks to run periodically. However, there are situations where we may need to schedule a task to…
Read More » -
Core Java
Determine CSV File Delimiter In Java
CSV (Comma Separated Values) files are widely used for data storage and transfer. While the default delimiter is often a…
Read More » -
Core Java
Iterate over a Guava Multimap
A Multimap is a collection that maps keys to values, where each key may be associated with multiple values. Let…
Read More » -
Core Java
Lombok @Locked Annotation Example
Lombok is a popular Java library that helps reduce boilerplate code by automatically generating getters, setters, constructors, and more. One…
Read More » -
Core Java
Format Output in a Table Format Using System.out
Formatting output in a table-like structure is essential for displaying data in a clear and organized way. Java provides several…
Read More » -
Enterprise Java
Create Avro Schema With List of Objects
Apache Avro is a powerful data serialization framework that enables efficient data exchange and storage. It is widely used in…
Read More » -
Core Java
Convert Avro File to JSON File in Java
In today’s data-driven world, effective data serialization formats are crucial for efficient storage and transmission of information. Apache Avro and…
Read More »