How many types of thread in java? give the name
Answer Posted / shekhar
There are two types of threads in java....
1. User threads: Which are created by the user program
itself. The example is the Main thread etc...
2. Daemon Threads: These threads are generated by the JVM
itself. They are service provider threads which run in the
background and are not used to run the application code.
The example is the Garbage Collection thread.
Is This Answer Correct ? | 28 Yes | 9 No |
Post New Answer View All Answers
What is the reason behind using constructors and destructors?
Is void a type?
How do you add an element to an arraylist in java?
Can we access instance variables within static methods ?
How is hashset defined in java?
What is a values collection view ?
What is the Scope of Static Variable?
Is 0 a prime number?
Can a static member function access member variable of an object?
What are the fileinputstream and fileoutputstream?
What are classloaders?
What does \ mean in regex?
Why a dead thread occurs?
What is the java reflection api? Why it’s so important to have?
Can an object be null?