Java Interview Question And Answer Different Thread States True or False Interview Question
263 views · Published 4 December 2013 · 3:37 · Indexed 20 September 2026
Channel: Interview DOT · 2013 · Science & Technology
Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java Interview Question And Answer Different Thread States True or False Interview Question A Job Portal http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm Other Top Job Portals www.Naukri.com www.MonsterIndia.com www.TimesJobs.com Are you looking for a new Job ? InterviewDot.com - A Job Portal http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm Which of the following statements are true with regards to the different thread states in Java? Java Interview Question And Answer The wait(), notify(), and notifyAll() methods must be executed in synchronized code. The wait method defined in the Thread class, can be used to convert a thread from Running state to Waiting state. The notify() and notifyAll() methods can be used to signal and move waiting threads to ready-to-run state. The Thread class is an abstract class. Whenever you start a thread ,the thread is moved to "Runnable" state and not "Running" state. You cannot start a thread twice -- will result in "ILLEGALTHREADSTATEEXCEPTION" There is only one way to a create thread in Java i.e Extend from thread class + implement Runnable TRUE -- 1 , 2 , 3 , 5 , 6 FALSE -- 4 , 7
More from this channel
-
1:43
Java Interview Question And Answer Eight Primitive Types in Java What Java Interview
-
2:13
Java Interview Question And Answer What would you use to compare == And equals Java Interview Quest
-
1:16
Java Interview Question And Answer When a thread blocks on IO, what state does it enter
-
3:21
What is NullPointerException in Java Java Interview Question And Answer NullPointerException
-
3:54
What is Reflection in Java Java Interview Question And Answer
-
2:42
Volatile in Java
-
1:28
Java primitive are passed by value Explain
-
2:31
Can we have an abstract class without abstract methods