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 languages are pass by reference?

0 Answers  


What technique is carried out to find out if a particular string is empty?

0 Answers  


How many static init can you have?

0 Answers  


Why local variables are stored in stack?

0 Answers  


Explain about fail safe iterators in java?

0 Answers  


What are different access specifiers in java? Explain

0 Answers  


what is the difference between future and callable interface in java?

0 Answers  


What is the instance of an object?

0 Answers  


why marker interfaces are there in java

4 Answers   Digital Group,


how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?

2 Answers  


Write a program based on Java script program.

0 Answers   Atos Origin,


Explain the Propertie sof class?

0 Answers  


Categories