--:--









Quiz for Thread class and Runnable interface

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



Logo

Q1: Which package contains the Thread class in Java?

Logo

Q2: Which method must be overridden when extending the Thread class?

Logo

Q3: How do you start a thread in Java?

Logo

Q4: Which interface must be implemented to create a thread without extending the Thread class?

Logo

Q5: Which method is defined in the Runnable interface?

Logo

Q6: What is the benefit of implementing Runnable over extending Thread?

Logo

Q7: What happens if we directly call run() instead of start() on a Thread?

Logo

Q8: Which method checks if a thread is still running?

Logo

Q9: Which of these is the correct way to create and start a thread using Runnable?

Logo

Q10: Which method causes the currently executing thread to pause and allow others to execute?

Are you ready to start test? Set your time limit