Answer Posted / ankush sharma
we have three types of threads
1.User Define Thread(main Thread always execute first and
start another thread)
2. Daemon thread (garbage Collection low priority thread)
3. GUI Thread( make as new create in main methods )
| Is This Answer Correct ? | 25 Yes | 38 No |
Post New Answer View All Answers
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 to convert string to char and vice versa?
What is the right data type to represent a price in java?
Can we catch more than one exception in single catch block?
Why unicode is important?
How do you find the maximum number from an array without comparing and sorting?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Why does java not support operator overloading?
What is the full name of java?
Can we override constructor in java?
How would you dynamically allocate memory to an array?
When the constructor of a class is invoked?
What is fundamental datatype?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
What is java used for?