What are the two ways of implementing multi-threading in java?
Answer Posted / hrindows@gmail.com
Multi threaded applications can be developed in Java by using any of the following two methodologies:
1. By using Java.Lang.Runnable Interface. Classes implement this interface to enable multi threading. There is a Run() method in this interface which is implemented.
2. By writing a class that extend Java.Lang.Thread class.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the final blank variable?
What is constant in programming?
Is string a data type in java?
Why set do not allow duplicates in java?
Which class is the superclass of all classes?
What is a method in java?
What are the six ways to use this keyword?
How to create an interface?
What is the benefit of abstract class?
Difference between default and protected access specifiers?
What is exception propagation?
Difference between operator overloading and function overloading
Can you explain inner class.
What are the rules for naming an array?
How objects are stored in java?