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 is anagram of a string?
What is bean? Where it can be used?
What do you mean by inner class in java? Explain
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
How to connect to a remote database using Applet?
Why stringbuilder is not thread safe in java?
What is the byte order of byte buffer?
How can you say java is object oriented?
What is file in java?
What are the advantages of functions?
What is multithreading in java?
How do you declare a variable?
Is array a class in java?
Can a class have multiple superclasses?
Give any two differences between C++ and java.