ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1721)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (146)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
How many types of thread in java? give the name
 Question Submitted By :: Core-Java
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
There are two types of threads in JAVA i.e.
1) User Thread :- This thread is created by user program
itself e.g. Main thread.

2) Daemon Thread:- This is JVM itself generated thread.
Example of this thread is Thread Scheduler and Garbage Collector
 
Is This Answer Correct ?    58 Yes 4 No
Mishal Tripathi
 
Answer
# 2
There are two types of threads in JAVA i.e.
1) User Thread :- This thread is created by user program
itself e.g. Main thread.

2) Daemon Thread:- This is JVM itself generated thread.
Example of this thread is Thread Scheduler and Garbage Collector
 
Is This Answer Correct ?    19 Yes 4 No
Vivek
 
 
 
Answer
# 3
In java Threads are two types 1) user thread 2) Daemon Thread 
Is This Answer Correct ?    8 Yes 0 No
Nikita
 
Answer
# 4
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 ?    8 Yes 1 No
Shekhar
 
Answer
# 5
There are two types of thread :
1.Single thread
2.Multi thread
 
Is This Answer Correct ?    0 Yes 0 No
Gaurav Makwana
 
Answer
# 6
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 ?    0 Yes 0 No
Tadveer
 
Answer
# 7
Thread is the path of execution of a program..Types of
threads are Single-threaded and Multi-threaded...This is
mainly differentiated on the basis of synchronisation..A
synchronised thread means a single thread executed only
once at a time..Multithread means threads are executed
simultaneously...
 
Is This Answer Correct ?    6 Yes 7 No
Rashmi
 
Answer
# 8
There are two types of thread in java.
1)-Single
2)- multi
By default one thread is running internally is main thread........
 
Is This Answer Correct ?    4 Yes 8 No
Swati
 
Answer
# 9
thread is two type
1.single thread
2.multi thread.
 
Is This Answer Correct ?    13 Yes 24 No
Usha
 
Answer
# 10
producer thread, consumer thread 
Is This Answer Correct ?    2 Yes 13 No
Guest
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Why java is free from garbage values??   4
C and C++ has constructors and distructors, why does Java does not have distructors? T3-Softwares 1
How do u provide security in java   2
Why to give the file name same as the public class name in java?   3
what happens when we add the objects morethan the size limit to a hashmap   1
how we can write the string concatenation program in java.   3
what is data binding? give the example TCS 1
What are interfaces?   3
what is the use of datasource in core java? Satyam 3
what is the difference between multitasking and multithreading? TCS 18
Difference between Superclass and Subclass?   4
What is a package?   2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com