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
how to write a program for sending mails between client and server
What is the use of callablestatement?
What is function overriding and overloading in java?
Which is dependent variable?
Why java is secure? Explain.
what is deadlock? : Java thread
Which list is sorted in java?
What is the byte range?
What is multi-catch block in java?
How do you convert boolean to boolean?
Why set do not allow duplicates in java?
Explain what is encapsulation?
Explain about procedural programming language or structured programming language and its features?
Why is a singleton bad?
What are the different types of inheritance in java?