what is the difference between java user thread and daemon thread java interview

Publicado el: 12 octubre 2012
en el canal de: Interview DOT
2,366
3

Click here -    / @interviewdot   to get notifications. JOB VACANCIES IN TOP IT / NOT-IT COMPANIES

UPLOAD YOUR RESUME IN 1 MINUTE ! ! !
http://www.interviewdot.com/upload-re...

http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

Welcome to www.InterviewDot.com How to for java prepare for Interview Questions :

What is the difference between java thread and daemon thread ? Explain-- Java Interview Questions and Answers.

What is the difference between java thread and daemon thread ? Explain

The difference between user thread and daemon thread is that the JVM exits an application only when all user threads are complete.

The JVM does not care about letting daemon threads complete, so once all the user threads are complete, the JVM will shut down, regardless of the state of any daemon threads.

User thread :
Main()
Daemon thread :
the clock handler thread,
the idle thread,
the garbage collector thread,
the screen updater thread,

How to make a user thread as daemon thread ? setDaemon(true) API

How to identify a thread is daemon thread or not ? You can use "isDaemon()" API


For more Interview questions and answers - logon to www.InterviewDot.com - India's Top Interview Guide.

http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com


En esta página del sitio puede ver el video en línea what is the difference between java user thread and daemon thread java interview de Duración hora minuto segunda en buena calidad , que subió el usuario Interview DOT 12 octubre 2012, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,366 veces y le gustó 3 a los espectadores. Disfruta viendo!