Jones alapat

DateTime & Locale in Java

Introduction Java language supports working with date and time, formating dates, and resource bundles. Java 8 provides a lot of new libraries from java.time packages, earlier classes were from Date and Calendar. The later classes were mostly deprecated due to issues in i18n & localization. Date – Time LocalDate LocalDate.now() LocalDate.of(2021,12,21) LocalDate.parse(“2021-12-21”) localDate.plusWeeks(1) localDate.withYear(2021) LocalTime …

DateTime & Locale in Java Read More »

Security in Spring Boot: UserPasswd, JWT Token, OAuth2

Spring Security Spring Security is a powerful authentication and authorization framework. Provides protection against attacks like session fixation, clickjacking, cross-site request forgery, etc. Spring Security is a highly flexible and customizable framework and is the de-facto standard in the Spring framework. This blog will cover three options UserName & Password JWT Token OAuth2 Many more …

Security in Spring Boot: UserPasswd, JWT Token, OAuth2 Read More »

Logging and Monitoring in Spring-Boot

Introduction What is the need for Logging and Monitoring? The response varies depending on who we ask this question, A newbie developer might brush it away as a waste of time, while a middle-level Engineer would agree that it is needed only when we need to debug an issue, whereas seasoned Engineer values Logging and …

Logging and Monitoring in Spring-Boot Read More »

Various Scheduling technique for Java Spring Application

Introduction Spring provides support for both task scheduling and asynchronous method execution we will check different ways this can be achieved. Spring schedular with any Instant time Spring Schedular with CronTrigger Spring schedular using Annotation When your app runs on multiple instances then Spring could not handle the synchronization of different instances, this is where …

Various Scheduling technique for Java Spring Application Read More »

Spring Retry

Retry is an important tool in our arsenal to make robust and efficient APIs, it helps us to automatically reinvoke a failed operation. This is because sometimes due to network glitches or DB errors, the call fails for the first time however succeeds next time. We can do retry using annotations, and RetryTemplate. Spring Retry …

Spring Retry Read More »

Design Patterns

A design pattern is a general reusable solution to the commonly occurring problems within a given context. Programmers often encounter the same problem repeatedly. Instead of everyone solving in their own way, the industry has come up with a best-practice solution that has been documented and proven to work. Design patterns are divided into following …

Design Patterns Read More »

Internal workings of Java Virtual Machine

Introduction The Java virtual machine is an abstract (virtual) computer defined by JVM specification. JVM’s primary function is to execute the byte code and reference implementation is given out by the HotSpot JVM. HotSpot JVM is available in 32-bit and 64-bit variants. The JVM is primarily written in CPP and is open-sourced. JVM architecture can …

Internal workings of Java Virtual Machine Read More »

Java 101

Classes A Java class file is a file containing Java bytecode that can be executed on the Java Virtual Machine. A class could be public, default, strictftp, final, and abstract modifiers. Public Class from all packages access to public class. Default Class should be same package, or else it will not be not visible. Strictftp …

Java 101 Read More »

Sorting And Searching

Introduction Understanding the common sorting and searching algorithms is incredibly valuable, as many sortings and searching problems are tweaks of the well-known algorithms. Two factors influence greatly, ie space and time complexity. Common Sorting Algorithms Selection Sort This is one of the easy algorithms, find the smallest element using a linear scan and move it …

Sorting And Searching Read More »

error: Content is protected !!
Scroll to Top