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 we declare static variables in JSP page.
Explain the available thread states in a high-level?
What is a line break?
How objects are stored in java?
Can we catch more than one exception in a single catch block?
what is difference between abstract factory and factory design patterns?
Which sorting is used in arrays sort in java?
What is finally block?
What is broken and continue statement?
Differentiate storage classes on the basis of their scope?
Why are functions called methods in java?
How do you define a set in java?