What are the two ways of implementing multi-threading in java?



What are the two ways of implementing multi-threading in java?..

Answer / 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

More Core Java Interview Questions

What does string [] args mean?

0 Answers  


Why should we use java?

1 Answers   IBM,


What is the difference between length and size in java?

0 Answers  


What is difference between array and arraylist in java?

0 Answers  


What is mvc in java?

0 Answers  






What is the relationship between class and object?

0 Answers  


How do you differentiate abstract class from interface?

0 Answers  


What is class and its types?

0 Answers  


List some features of the abstract class.

0 Answers  


How two different class threads communicate with each other?. send example code.

4 Answers  


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,


Are primitives objects?

0 Answers  


Categories