1. What is Thread ? Junior A. a state where two or more threads are blocked forever, each waiting for a lock the other holds B. an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution C. a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking D. an independent path of execution within a program that the JVM can schedule to run concurrently Reveal the answer + AI explanation — free account
2. Which term means: "an independent path of execution within a program that the JVM can schedule to run concurrently"? Junior A. Deadlock B. synchronized keyword C. Thread D. ExecutorService Reveal the answer + AI explanation — free account
3. Which statement is correct? Junior A. Thread — a functional interface whose run method holds the code a thread executes, returning no result B. Thread — a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking C. Thread — an independent path of execution within a program that the JVM can schedule to run concurrently D. Thread — a state where two or more threads are blocked forever, each waiting for a lock the other holds Reveal the answer + AI explanation — free account
4. What is synchronized keyword ? Mid A. a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method B. a functional interface whose run method holds the code a thread executes, returning no result C. an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution D. an independent path of execution within a program that the JVM can schedule to run concurrently Reveal the answer + AI explanation — free account
5. Which term means: "a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method"? Mid A. Runnable B. ExecutorService C. synchronized keyword D. Thread Reveal the answer + AI explanation — free account
6. Which statement is correct? Mid A. synchronized keyword — an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution B. synchronized keyword — a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method C. synchronized keyword — an independent path of execution within a program that the JVM can schedule to run concurrently D. synchronized keyword — a state where two or more threads are blocked forever, each waiting for a lock the other holds Reveal the answer + AI explanation — free account
7. What is volatile keyword ? Mid A. an independent path of execution within a program that the JVM can schedule to run concurrently B. a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method C. an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution D. a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking Reveal the answer + AI explanation — free account
8. Which term means: "a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking"? Mid A. Deadlock B. volatile keyword C. synchronized keyword D. ExecutorService Reveal the answer + AI explanation — free account
9. Which statement is correct? Mid A. volatile keyword — a functional interface whose run method holds the code a thread executes, returning no result B. volatile keyword — a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking C. volatile keyword — an independent path of execution within a program that the JVM can schedule to run concurrently D. volatile keyword — a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method Reveal the answer + AI explanation — free account
10. What is Deadlock ? Senior A. a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking B. a state where two or more threads are blocked forever, each waiting for a lock the other holds C. an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution D. an independent path of execution within a program that the JVM can schedule to run concurrently Reveal the answer + AI explanation — free account
11. Which term means: "a state where two or more threads are blocked forever, each waiting for a lock the other holds"? Senior A. synchronized keyword B. Thread C. Deadlock D. ExecutorService Reveal the answer + AI explanation — free account
12. Which statement is correct? Senior A. Deadlock — a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method B. Deadlock — an independent path of execution within a program that the JVM can schedule to run concurrently C. Deadlock — an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution D. Deadlock — a state where two or more threads are blocked forever, each waiting for a lock the other holds Reveal the answer + AI explanation — free account
13. What is ExecutorService ? Senior A. a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking B. an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution C. an independent path of execution within a program that the JVM can schedule to run concurrently D. a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method Reveal the answer + AI explanation — free account
14. Which term means: "an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution"? Senior A. Thread B. volatile keyword C. Runnable D. ExecutorService Reveal the answer + AI explanation — free account
15. Which statement is correct? Senior A. ExecutorService — a state where two or more threads are blocked forever, each waiting for a lock the other holds B. ExecutorService — a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method C. ExecutorService — a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking D. ExecutorService — an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution Reveal the answer + AI explanation — free account
16. What is Runnable ? Mid A. a functional interface whose run method holds the code a thread executes, returning no result B. an abstraction that manages a pool of worker threads and accepts tasks for asynchronous execution C. a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking D. a state where two or more threads are blocked forever, each waiting for a lock the other holds Reveal the answer + AI explanation — free account
17. Which term means: "a functional interface whose run method holds the code a thread executes, returning no result"? Mid A. Deadlock B. Runnable C. Thread D. ExecutorService Reveal the answer + AI explanation — free account
18. Which statement is correct? Mid A. Runnable — an independent path of execution within a program that the JVM can schedule to run concurrently B. Runnable — a modifier that acquires an object monitor lock so only one thread at a time executes the guarded block or method C. Runnable — a functional interface whose run method holds the code a thread executes, returning no result D. Runnable — a field modifier that guarantees reads and writes go directly to main memory, ensuring visibility across threads without locking Reveal the answer + AI explanation — free account