Blog Archives

02: 5 Java multithreading scenarios interview

Java interview questions & answers on multithreading scenarios to judge your experience in building applications with concurrency in mind. Q1. Can you give some scenarios where you built concurrent systems? A1. In a concurrent system different threads run concurrently, … Read more ›...



12: 5 Java synchronize & concurrency mgmt scenarios interview Q&As

This extends Q1. Can you give some scenarios where you had used multi-threading in Java applications? Q2. Can you give some scenarios where you used the synchronized keyword in Java? A2. Firstly, you need to assume that your code is always going to be accessed by multiple threads. … Read...



5 Java concurrency management interview Q&As

Concurrency is very important in any modern system, and this is one topic many software engineers struggle to have a good grasp. The complexity in concurrency programming stems from the fact that the threads often need to operate on the common data. Each thread has its own sequence of execution,...



Dealing with concurrent modifications in Java

There are scenarios where you need to deal with concurrent modifications in Java. Here are 2 scenarios that I can currently think of. Scenario 1: Looping through a list of items and removing an item in the list could lead to “ConcurrentModificationException“. … Read more ›...



JConsole for debugging deadlocks in Java

This is another debugging concurrency issues tutorial following on Debugging Java thread-safety, multi-threading, or concurrency issues tutorial. Step 1: Java code that creates a dead lock situation by a) thread-0 holding on to lock1 and waiting for the lock2, … Read more ›...



jvisualvm to debug deadlocks in Java

This extends JConsole for debugging deadlocks in Java applications, using jvisualvm that gets shipped with your JDK. Step 1: Java code that creates a dead lock situation by a) thread-0 holding on to lock1 and waiting for the lock2, … Read more ›...



Java Interview FAQs

800+ Java Interview Q&As

Top