What is the initial state, When a thread is created and
started?
Answers were Sorted based on User's Feedback
Answer / rajesh
Initial state of the thread is ready state. When you create
an object of the class either implementing the runnable
interface or extending Thread class, thread is created.
Thread is start when developer calls;
Thread.start() method
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / dharmender
the initial state of a thread is New, when a thread instance is just created but start method is not yet invoked on it.
Once start method is called upon then it enters the Runnable state.
| Is This Answer Correct ? | 3 Yes | 2 No |
what is singleton class? where it mainly used in the projects?
what is JTS?
Explain the purposes of methods wait(), notify(), notifyAll ()?
What are the different approaches to represent an inheritance hierarchy?
What is the purpose of the notifyall() method?
When a thread blocks on i/o?
What is threadfactory?
What is resource bundle?
What is difference between object state and behavior?
How do you iterate in Hashmap?
Write a program to show synchronization?
How are commas used in the intialization and iteration parts of a for statement?