Answer Posted / nashiinformaticssolutions
The life cycle of a thread includes five stages, as mentioned below.
1. New Born State
2. Runnable State
3. Running State
4. Blocked State
5. Dead State
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to find the given number is a prime number or not by getting input from the user
What is close method? How it's different from Finalize & Dispose?
What is abstract class constructor called?
What is connection class in java?
Can a private method be declared as static?
What is role of void keyword in declaring functions?
In how many ways we can create threads in java?
Can we overload the methods by making them static?
Does treeset use compareto?
What is assembly condition codes?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
How we can execute any code even before main method?
What is the maximum size of arraylist in java?
Explain about transient variables in java?
Why do we need strings in java?