Loading

Q1.

After creating a thread using the Thread class, but before calling start(), which state is it in?

A. Runnable

B. New

C. Waiting

D. Running


Q2.

When a thread calls join() on another thread, what happens?

A. The current thread waits until the other thread finishes

B. The other thread is forced to stop

C. Both threads run in parallel

D. The thread is moved to Dead state immediately


Q3.

 Which thread state is entered when sleep(1000) is invoked?

A. Waiting

B. Runnable

C. Timed Waiting

D. Terminated


Q4.

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

A. New

B. Runnable

C. Running

D. Blocked Forever


Q5.

Once a thread has reached the Terminated state, what happens if we call start() again?

A. It restarts execution

B. It runs from the last checkpoint

C. It throws IllegalThreadStateException

D. It silently ignores the call