what is use of threads how many ways to create thread
Answer Posted / subash chandra bose l
there are many uses of threads and the main use is to
execute several process at once.
there are two ways of creating a thread and
1. extending a Thread class
2. implementing Runnable interface
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What are the two basic ways in which classes that can be run as threads may be defined?
Why hashcode is used in java?
What is a subsequence of a string?
Can a static method be overridden in java?
What variables are stored in stack?
Explain differences between checked and unchecked exceptions in java?
What is keyword and identifier?
What is bom encoding?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is the latest java version?
What are the actions that can occur when a thread enters blocked state?
Is string pool garbage collected?
Why stringbuilder is not thread safe?
When do we use hashset over treeset?
What is java in layman terms?