programming

Exploring the Latest Features in Spring Framework: Spring 5 and Beyond

Exploring the Latest Features in Spring Framework: Spring 5 and Beyond The Spring Framework, a robust and widely adopted Java framework, continues to evolve with each new version, bringing in enhancements, features, and improved capabilities. As of my last knowledge update in September 2021, let’s delve into the features introduced in the latest versions, with […]

OOP Example With Java

Object-Oriented Programming (OOP) in Java: A Comprehensive Guide with Examples Object-Oriented Programming (OOP) is a programming paradigm that revolves around the concept of “objects.” Java, a widely-used programming language, is a great platform for learning and implementing OOP principles. In this article, we’ll dive into the fundamentals of OOP in Java, explaining key concepts with […]

Serialization and Deserialization in java with Example

Serialization and deserialization are two important concepts in Java that allow objects to be converted into a stream of bytes and then retrieved back into objects again. In this article, we will discuss what serialization and deserialization are, why they are important, and how to implement them in Java. What is Serialization? Serialization is the […]

Java Spring

Spring is a popular framework used for developing enterprise-level applications in Java. It is known for its modular architecture, which allows developers to use only the required components and reduce the complexity of the application. In this article, we will discuss the architecture of Spring and how it works. Overview of Spring Architecture The architecture […]

How to iterate any Map in Java

There are three main ways that you can iterate through a java map Use entrySet() function public void iterateByEntrySet(Map map) { for (Map.Entry entry : map.entrySet()) { System.out.println(entry.getKey() + “:” + entry.getValue()); } } 2. Use ketSet() function public void iterateByKeySetAndForeach(Map map) { for (String key : map.keySet()) { System.out.println(key + “:” + map.get(key)); } […]

What is NestJs

NestJS is a server-side framework for building scalable, efficient, and maintainable Node.js applications. It is built on top of Express.js and provides a modular and intuitive structure for developing complex web applications. Some key features of NestJS include: Dependency Injection: NestJS provides a powerful dependency injection system, which makes it easy to manage dependencies and […]

Sharepoint API – Nodejs

SharePoint API is a set of RESTful web services in Microsoft SharePoint that provides programmatic access to content, metadata, and functionality stored in a SharePoint site. The API enables developers to interact with SharePoint sites and data in a variety of ways, such as reading, creating, and updating data, managing permissions and access to content, […]

Java Enum to List

EnumType.values() Method public class YourEnumClass { public enum YourEnums{ CREATE, EVERY_UPDATE, FIRST_UPDATE, DELETE } } List yourEnumList=Arrays.asList(YourEnumClass.YourEnums.values()); EnumSet.allOf() Method public class YourEnumClass { public enum YourEnums{ CREATE, EVERY_UPDATE, FIRST_UPDATE, DELETE } } List yourEnumList=EnumSet.allOf(YourEnumClass.YourEnums.class);

How to convert a String List to Comma Seprated String

Stream Collectors.joining import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; //———————— public class YourClass { public static void main(String[] args) { List list = Arrays.asList(“a”, “b”, “c”); String result = list.stream().collect(Collectors.joining(“,”)); System.out.println(result); } } Output: a,b,c String.join import java.util.Arrays; import java.util.List; public class MyClass { public static void main(String[] args) { List list = Arrays.asList(“a”,”b”,”c”); String result […]

Access Javascript Nested objects or Attributes safely

Access Javascript Nested objects or Attributes safely It is very likely to get run time exceptions on trying to read value of undefined or null objects in Javascript. There are two ways we can solve this common development issue. The optional chaining operator, also known as the safe navigation operator, is a feature of ECMAScript […]

Scroll to top