--:--









Quiz for Executor Framework

Course: JAVA | Subject: Java | Topic: Multithreading and Concurrency



Logo

Q1: Which package provides the Executor framework in Java?

Logo

Q2: What does the Executor interface represent?

Logo

Q3: Which method is defined in the Executor interface?

Logo

Q4: Which class provides factory methods for creating executor services?

Logo

Q5: What does newFixedThreadPool(n) create?

Logo

Q6: Which method shuts down the ExecutorService gracefully?

Logo

Q7: Which method submits a task and returns a Future?

Logo

Q8: What does the Future interface represent?

Logo

Q9: Which method blocks until the task completes and returns the result?

Logo

Q10: Which thread pool is suitable for executing short-lived tasks?

Are you ready to start test? Set your time limit