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 is the difference between variable & constant?

0 Answers  


What is the difference between C++ & Java?

78 Answers   College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,


What is a class ?

8 Answers  


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

0 Answers  


What is the difference between instanceof and isinstance?

0 Answers  






After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why?

5 Answers   Aricent,


Can you give names of Container classes?

0 Answers   Ordain Solutions,


What are the various access specifiers for java classes?

0 Answers  


What is string substring?

0 Answers  


What is an array length?

0 Answers  


How java enabled high performance?

0 Answers  


Can we catch more than one exception in single catch block?

0 Answers  


Categories