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 are the elements of java?
How to call one constructor from the other constructor ?
Highest level event class of the event-delegation model?
What is unmodifiable collection in java?
Which one of the following suits the description of a string better: derived or primitive?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
Can a class be declared as static?
How to create a base64 decoder in java8?
How is garbage collection controlled?
Does java isempty check for null?
Does java vector allow null?
Explain the difference between jdk, jre, and jvm?
Is string a class in java?
How objects of a class are created if no constructor is defined in the class?
What are some characteristics of interference class?