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 the difference between variable & constant?
What is the difference between C++ & Java?
78 Answers College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,
What is a class ?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What is the difference between instanceof and isinstance?
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why?
Can you give names of Container classes?
What are the various access specifiers for java classes?
What is string substring?
What is an array length?
How java enabled high performance?
Can we catch more than one exception in single catch block?