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
Should you use singleton pattern?
What must a class do to implement an interface in java programming?
why Java does not support multiple inheritances?
what is a thread pool in java and why is it used?
Why method overriding is used?
What classes of exceptions may be thrown by a throw statement?
What is a parameter example?
What is the independent variable in an experiment?
What is the different types of functions?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What is a JAR file?
What is the difference between the font and fontmetrics classes in java programming?
what is mutual exclusion? : Java thread
What is yield () in java?
Can you pass functions in java?