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 is a singleton class in Java?
How many types of assembly languages are there?
What are the two categories of data types in the java programming language?
Are the equals() and hashCode() protected methods of object class?
What is meant by main method?
What is the difference between Trusted and Untrusted Applet ?
what is the use of clone() in real time scenario?
Why do we need hashset in java?
What is the size of int in 64-bit jvm?
Wha is the output from system.out.println(“hello”+null); ?
program to validate the IP address? Validity range should be 0 to 255
What is final keyword in java? Give an example.