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 garbage collection? Can it be forced to run?

0 Answers   Global Logic,


what are Checked & Unchecked exceptions ?

2 Answers  


Need 2+ yrs experienced java techinical question papaer for company Iflex

1 Answers   TCS,


What are the differences between processes and threads?

0 Answers  


How do you reverse a string in java?

0 Answers  






Can you sort a string in java?

0 Answers  


What is final keyword?

0 Answers  


What is the minimum and maximum length of an identifier?

6 Answers   TCS,


Can we have 2 main methods in java class?

0 Answers  


In a my eclipse editor if i want to switch from jdk 1.4 to jdk 1.6 how to do that???? Initially i have jdk1.4

1 Answers   Tech Mahindra,


By what default value is an object reference declared as an instance variable?

1 Answers   Wipro,


What are static blocks in java ?

0 Answers  


Categories