Code Monk

Tech forum for Java, algorithms & data-structures, Hibernate, RESTful API, Spring framework, Microservices architecture, Interview questions, Python, SDET, Machine learning, DevOps.

Merge two sorted array into a single sorted array

Upasana | October 16, 2020 | | 42 views

There are two sorted array of integers, you have to merge them both into single sorted array.

Read Article

N+1 problem in Hibernate & Spring Data JPA

Upasana | October 03, 2020 | 4 min read | 3,088 views

N+1 problem is a performance issue in Object Relational Mapping that fires multiple Select Queries in database for a single select query at application layer. Hibernate provides multiple ways to identify and prevent this problem.

Read Article

What is purpose of Collections.unmodifiableCollection

Upasana | October 03, 2020 | 1 min read | 70 views | Multithreading and Concurrency

What does Collections.unmodifiableCollection() do? Is it safe to use the collection returned by this method in a multi-threading environment?

Read Article

Http methods for RESTful services

Upasana | October 01, 2020 | 6 min read | 3,619 views

Most commonly used HTTP methods are GET, POST, PUT, PATCH and DELETE. We will cover all of these one by one in detail.

Read Article

Custom TTL for Spring data Redis Cache

Upasana | October 01, 2020 | 2 min read | 2,978 views

Spring Boot 2.2 provides options to customize Redis Cache using RedisCacheManagerBuilderCustomizer enabling us to set custom value for TTL (time-to-live) for each of the cache.

Read Article

Install & configure Redis on Ubuntu

Upasana | October 01, 2020 | 3 min read | 103 views

This tutorial demonstrates how to install, configure (memory, systemd, networking), and secure Redis 5.x on Ubuntu 20.04 LTS server.

Read Article

Markit Java Interview Questions

Upasana | October 01, 2020 | 2 min read | 215 views | investment banking

Most investment banking companies need skills like inheritance, multi-threading, concurrency, collections, java design patterns, spring framework, basic knowledge of database - indexes, joins and working knowledge of queue etc.

Read Article

Upgrade Jenkins on Ubuntu 18.04 LTS

Upasana | September 30, 2020 | 1 min read | 7,924 views

we will apply minor update to existing Jenkins installation on Ubuntu 18.04 LTS and Ubuntu 20.04 LTS machine.

Read Article

Top 50 Spring Interview Questions

Upasana | September 30, 2020 | 2 min read | 1 views

Top 50 interview questions from Spring MVC, Core, Dependency Injection, REST, Spring Security, Spring Boot

Read Article

Unresolved circular dependency in spring dependency injection

Upasana | September 30, 2020 | 3 min read | 1,690 views

This is most likely a design level problem and should be resolved by modifying the object level design. This problem indicates that two different Classes share the common responsibility and your design is lacking the abstraction of responsibilities.

Read Article