W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
52 questions for “Concurrency & Threads”
Found in 1 field. Select a question to see its full answer.
Matching topics
Java
Concurrency
&
Threads
15
Python
Concurrency
(asyncio/threading/multiprocessing)
3
.NET MAUI
Concurrency
& Threading
1
.NET MAUI
Concurrency
& Threading
1
Information Technology
52 questions in 7 technologies
#
Question
Technology
Topic
Level
1
How does Java's virtual
threads
feature (Project Loom, finalized in Java 21) fundamentally change the thread-per-task model for high-
concurrency
applications, and how do they differ from traditional platform
threads
?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Advanced
2
What is a race condition, and how does it differ conceptually from a deadlock as two distinct categories of
concurrency
bugs?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Intermediate
3
What are the two primary ways to create a thread in Java (extending Thread versus implementing Runnable), and which is generally preferred?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Beginner
4
What is the difference between calling Thread.start() and Thread.run() directly, and why is calling run() directly a common beginner mistake?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Beginner
5
What is the synchronized keyword, and how does it use Java's intrinsic (monitor) locks to prevent race conditions on shared mutable state?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Intermediate
6
What is the ExecutorService framework, and why is it generally preferred over manually creating and managing individual Thread objects?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Intermediate
7
What causes a deadlock in multithreaded Java code, and what is the classic "lock ordering" strategy for preventing it?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Intermediate
8
What are the atomic classes in java.util.concurrent.atomic (AtomicInteger, AtomicLong, AtomicReference), and how do they achieve thread-safe operations without traditional locking?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Intermediate
9
What is thread starvation, and how can thread priority misuse or unfair lock scheduling contribute to it?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Intermediate
10
What is the difference between wait()/notify()/notifyAll() (Object's intrinsic monitor methods) and the newer java.util.concurrent tools, and why are the older methods considered error-prone?
Java › Concurrency & Threads
Java
Concurrency
&
Threads
Intermediate
Show all 52 questions in Information Technology