Java Code Monk

Lets discuss Core Java, Algorithms, Data structures, Concurrency, Collections Framework, Hibernate, REST, Spring Framework, Spring Data, Microservices, Interview Questions, Python, AWS, DynamoDB.

What is difference between sleep() and wait() method in Java?

Munish Chandel | April 22, 2019 at 10:39 PM | 1 views

`wait()` and `notify()` are used in multi-threading programming for inter-thread communication, while sleep is used to control execution time of current thread.

Read Article

Fibonacci using Dynamic Programming in Java and Kotlin

Munish Chandel | April 22, 2019 at 10:38 PM | 1 views

Dynamic Programming is a powerful optimization technique, where a recursive problem can be solved in O (n^2^) or O (n^3^) where a naive approach would take exponential time O (2^n^)

Read Article

How to prevent duplicate form submission in Spring MVC

Munish Chandel | April 22, 2019 at 10:25 PM | 234 views

Post-Redirect-Get web design pattern can be used in Spring MVC to prevent duplicate form submission.

Read Article

What is AtomicInteger class and how it works internally

Munish Chandel | April 22, 2019 at 09:57 PM | 110 views

AtomicInteger class was added in Java 5 that utilizes non-blocking concurrency for thread-safety, providing better throughput in highly concurrent environments.

Read Article

How to implement Thread pool in Java without executor framework

Munish Chandel | April 22, 2019 at 09:47 PM | 1 views

thread pool executor requires a Queue for holding tasks and a collection of Worker Threads that will pick up tasks from the work queue start running them.

Read Article

Top 50 Java Interview Questions for Investment Banking Domain & HealthCare IT

Munish Chandel | April 22, 2019 at 09:36 PM | 618 views | algorithm-datastructures

Top 50 Java Interview Questions for Investment Banking Domain & HealthCare IT, java interview, investment banking domain, healthcare it, interview preparation, hibernate questions, spring questions, algorithms questions, fresher interview java

Read Article

What is Double Checked Locking Problem in Multi-Threading?

Munish Chandel | April 22, 2019 at 09:03 PM | 109 views

This article is about Java Memory Model and Double Checked Locking Problem for Singleton creation in Multi-Threading

Read Article

What will happen if we don't synchronize getters/accessors of a shared mutable object in multi-threaded applications

Munish Chandel | April 22, 2019 at 08:47 PM | 19 views | Multithreading and Concurrency

When multiple threads share mutable data, each thread that reads or writes the data must perform synchronization. In fact, synchronization has no effect unless both read and write operations are synchronized.

Read Article

How will you test web layer in Spring Boot using WebMvcTest annotation?

Munish Chandel | April 22, 2019 at 04:34 PM | 2 views | microservices-architecture

In this tutorial we will write a Spring Boot based test class that tests the web layer of our application without loading the full Spring context. These tests are often used to verify single or multiple containers

Read Article

Top 50 Spring Cloud microservices architecture interview questions

Munish Chandel | April 22, 2019 at 03:07 PM | 5 views | microservices-architecture

In this article we will discuss top 50 Spring Microservices interview questions for experiences Java Developers. Includes core concepts, oauth2 security, testing microservices, deployment patterns, and best practices & design patterns.

Read Article

This website uses cookies to ensure you get the best experience on our website. more info