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 garbage collection? Can it be forced to run?
what are Checked & Unchecked exceptions ?
Need 2+ yrs experienced java techinical question papaer for company Iflex
What are the differences between processes and threads?
How do you reverse a string in java?
Can you sort a string in java?
What is final keyword?
What is the minimum and maximum length of an identifier?
Can we have 2 main methods in java class?
In a my eclipse editor if i want to switch from jdk 1.4 to jdk 1.6 how to do that???? Initially i have jdk1.4
By what default value is an object reference declared as an instance variable?
What are static blocks in java ?