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
Explain restrictions on using enum?
How many bytes is a unicode character?
What is an exception in java?
What are the characteristics of Final,Finally and Finalize keywords.
What is the private method modifier?
What is the use of accept () method in java?
When do I need to use reflection feature in java?
How are the elements of a gridbaglayout organized in java programming?
What is ascii code?
Can private class be inherited in java?
What is the syntax and characteristics of a lambda expression? Explain
What is the difference between notify and notifyall method?
How is java created?
What is composition in java?
What is adapter in java?