Loading

Q1.

Which method is used to start a new thread in Java?

A. run()

B. start()

C. execute()

D. init()


Q2.

Which of the following is NOT a valid state in the Thread lifecycle?

A. New

B. Runnable

C. Terminated

D. Processing

Q3.

 Which interface is implemented to create a thread in Java without extending the Thread class?

A. Serializable

B. Runnable

C. Callable

D. Comparable


Q4.

 What will happen if start() is called twice on the same thread object?

A. The thread restarts

B. It executes run() again

C. It throws IllegalThreadStateException

D. It silently ignores


Q5.

Which method makes the current thread pause for a specific time?

A. wait()

B. sleep()

C. yield()

D. join()