Java - Online Test - Threads - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'threads' - 7 questions found


What is the initial state of a thread when it is created and started ?Core Java
Wait
Running
Ready
Sleep

  java  threads  multithreading  thread states

What state does a thread enter when it terminates its processing?Core Java
Wait
Ready
Dead
Running

  java  threads  multithreading  thread states

Which keyword is used to provide explicit access of a code block to single thread ?Core Java
Transient
Final
Explicit
Synchronized

  java  threads  multithreading

Invoking start twice on same thread leads to ..Core Java
ClassCastException
NullPointerException
InterruptedException
IllegalStateException

  java  exception  threads

notify(), notifyAll(), wait() are found in which classCore Java
java.lang.Object
java.lang.Thread
java.lang.Runnable
java.lang.Implement

  

Which of following is Daemon Thread ?Core Java
Thread Scheduler
Daemon Thread
Both of above
None of above

  daemon thread   threads

What kind of thread is Garbage collection thread ?Core Java
Daemon Thread
User Thread
System Thread
Active Thread

  garbage collection  thread type







comments powered by Disqus