How many types of thread in java? give the name
Answer Posted / vivek
There are two types of threads in JAVA i.e.
1) User Thread :- This thread is created by user program
itself e.g. Main thread.
2) Daemon Thread:- This is JVM itself generated thread.
Example of this thread is Thread Scheduler and Garbage Collector
| Is This Answer Correct ? | 50 Yes | 12 No |
Post New Answer View All Answers
What is a finally block?
How do you print array in java?
What is variable in java?
design an lru cache in java?
Can private class be extended java?
What is the multi-catch block in java?
What do you mean by local class?
How we can generate random numbers in java?
What is complexity and its types?
What is the properties class in java programming?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What will be the initial value of an object reference which is defined as an instance variable?
What is the difference between post and put?
What are the different collection views provided by maps?