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 |
Can singleton class be inherited in java?
What do you mean by stack?
What is casting in java programming?
Difference between Superclass and Subclass?
can we declare private class in java file?
How do you compare two strings? any predefined method for this?
What are the differences between wait() and sleep()?
What collections you have worked on? Internal working of Hashmap?
write the hierarchy of component class?
Are true and false keywords?
What is class and object in java?
What is the length of a string?