Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Java
« Previous
Next »
What kind of thread is the Garbage collector thread is?
Options
- Non daemon thread
- Daemon thread
- Thread with dead state
- None of the above
CORRECT ANSWER : Daemon thread
Discussion Board
Test
Good
Sat 10-3-2014 03:30 PM
Daemon Thread for garbage collection
Daemon threads are service providers for other threads or objects that are running in the same process as daemon thread. It supports background tasks and only needed while normal threads are executing. It is used in garbage collection mechanism as when the normal threads don't run and remaining threads are daemon threads then the interpreter of the program exits. Example: HotJava browser uses up to four daemon threads named "Image Fetcher" to fetch images from the file system or network for any thread that needs one. In daemon thread JVM will only shut down a program when all user threads have terminated.
Rohit Sharma 07-28-2014 12:48 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲