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
Why do we declare a class static?
What are the 8 data types in java?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
Can we convert stringbuffer to string?
What about main thread in java?
What is a condition in java?
What is the role of the java.rmi.naming class?
What are kinds of processors?
What is var keyword ?
Explain the available thread states in a high-level?
Explain the importance of finally over return statement?
What is the use of put method?
What are static variables and functions?
What is the function of http?