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

Опубликовано: 12 Октябрь 2012
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн what is the difference between java user thread and daemon thread java interview длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Interview DOT 12 Октябрь 2012, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,366 раз и оно понравилось 3 зрителям. Приятного просмотра!