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 (1722)
 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 (147)
 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 ?    63 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
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 ?    10 Yes 1 No
Shekhar
 
Answer
# 4
In java Threads are two types 1) user thread 2) Daemon Thread 
Is This Answer Correct ?    8 Yes 0 No
Nikita
 
Answer
# 5
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 ?    7 Yes 7 No
Rashmi
 
Answer
# 6
There are two types of thread :
1.Single thread
2.Multi thread
 
Is This Answer Correct ?    1 Yes 1 No
Gaurav Makwana
 
Answer
# 7
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
# 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 ?    5 Yes 9 No
Swati
 
Answer
# 9
thread is two type
1.single thread
2.multi thread.
 
Is This Answer Correct ?    14 Yes 25 No
Usha
 
Answer
# 10
producer thread, consumer thread 
Is This Answer Correct ?    2 Yes 15 No
Guest
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
how you will prevent inheritance is there any other way other than inheritance? Wipro 4
why we cannot declare static variable inside a static method   4
Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify Ericsson 3
What are the characteristics provided in jdk1.6 apart from other versions? TCS 3
what is the main difference between string and stringbuffer? can you explain it with program?   2
java is puerly object oriented or not ?   5
What is the difference between throw and throws? IBM 10
1).what is the difference between below examples String s="vijay"; String s=new String("vijay"); TCS 12
explain the concept of inheritance with an example? Polaris 7
we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2 CSC 2
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why? Aricent 5
How u dubugg ur project? iFlex 1
 
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