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 differences between stringbuffer and stringbuilder?
What are heap memory and stack memory and what are memory tables.
How do you use wildcards?
How many types of the indexof method are there for strings?
Define immutable object?
Is it possible to write a regular expression to check if string is a number?
Can we declare the static variables and methods in an abstract class?
In how many ways we can create threads in java?
Is a class subclass of itself?
What is the escape character in java?
what is thread in Java ?
What are encapsulation, inheritance and polymorphism?
When will you define a method as static in Java?
What is difference between array and arraylist in java?
What is a predicate method?