Java Concurrency Interview Questions
Upasana | July 24, 2020 | 2 min read | 1,105 views | Multithreading and Concurrency
Java concurrency and multi-threading interview questions on Java Memory Model, volatile keyword, HashMap, ConcurrentHashMap, fail-safe and fail-fast iterator, immutability, ThreadLocal, Callable and Runnable, Concurrent package, synchronization and Executor framework
-
What is thread-safety? How do you achieve it?
-
What are typical problems related to multi-threading applications?
-
How to remove items from a Java collection while iterating over it?
-
How will you handle ConcurrentModificationException in java?
-
What is AtomicInteger class, how is it different from normal synchronization
-
Do we need to synchronize on Getter of a shared mutable class?
-
Can two threads call two different synchronized instance methods of an Object?
-
What is Executor Framework?
-
Use ExecutorCompletionService to compute results from 5 different datasources in parallel
-
How will you implement a blocking queue from scratch in java?
Top articles in this category:
- Morgan Stanley Java Interview Questions
- UBS Java Interview Questions
- Multi-threading Java Interview Questions for Investment Bank
- ION Trading Java Interview Questions
- Sapient Global Market Java Interview Questions and Coding Exercise
- BlackRock Java Interview Questions
- Citibank Java developer interview questions