What are the two ways of implementing multi-threading in java?
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 |
What does string [] args mean?
Why should we use java?
What is the difference between length and size in java?
What is difference between array and arraylist in java?
What is mvc in java?
What is the relationship between class and object?
How do you differentiate abstract class from interface?
What is class and its types?
List some features of the abstract class.
How two different class threads communicate with each other?. send example code.
what is difference between servletconfig and servletcontext?
Are primitives objects?