How many types of thread in java? give the name

Answer Posted / tadveer

there are two types of thread
1.user thread
2.kernel thread

java works only in user thread , kernel thread handles by OS.

user thread categorized as
1.daemon thread(which are executing in background like Gabage collector,ThreadScheduler)
2.non daemon thread(created by the user)

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do you canvas?

613


How can I debug the Java security exceptions and AccessControlExceptions?

638


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

598


What is anti pattern in programming?

501


Can java object be locked down for exclusive use by a given thread?

584






What is a variable in java?

534


Why wait and notify methods are declared in object class?

599


What is string builder in java?

556


What happens if an exception is not handled in a program?

624


What is :: operator in java?

507


How do you sort an array in java?

541


Can we change the value of static variable?

500


What does flag mean in java?

542


Can a abstract class be declared final?

567


Explain the difference between throw and throws in java?

552