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
Name few java.lang classes introduced with java 8 ?
What is the difference between hashmap and hashtable? What is an interface?
What is encapsulation in java?
What are the benefits of immutable objects?
What do you understand by final value?
What is the purpose of static methods and variables?
Can you explain the meaning of aggregation and composition
What is an abstract method in java programming?
How does a for loop work java?
is there a separate stack for each thread in java? : Java thread
Can we have two main methods in a java class?
Can a static method be final?
what is interface in java? Explain
What is the full name of java?
What is a generic code?