What are the two ways of implementing multi-threading in java?
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 |
what is platform native code
What is a type parameter in java?
What is binary search in java?
Why does it take so much time to access an applet having swing components the first time?
why the abstract class has default constructor?
When does an object becomes eligible for garbage collection in java?
Why is singleton class used?
What is bigger kb or mb?
What is the += operator called?
Difference between serialization and deserialization in java?
How are Observer and Observable used?
What is the importance of static variable?