ALLInterview.com :: Home Page KalAajKal.com
 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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
how to create thread in java?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to create thread in java?
Answer
# 1
There are two methods available
1.by using extends keyword
2.by using interfaces
 
Is This Answer Correct ?    0 Yes 2 No
Guest
 
  Re: how to create thread in java?
Answer
# 2
It was created by extended from Thread class
and also we can create from interface  thred
 
Is This Answer Correct ?    0 Yes 1 No
Solanki
 
 
 
  Re: how to create thread in java?
Answer
# 3
by extending thread class or by implementing runnable 
interface
 
Is This Answer Correct ?    2 Yes 0 No
Mohan
 
  Re: how to create thread in java?
Answer
# 4
Their are specifically two different approaches to create 
threads in Java:
1.By Extending thread class.
2.By Implementing runnable interface.
 
Is This Answer Correct ?    1 Yes 0 No
Bijoy
 
  Re: how to create thread in java?
Answer
# 5
It can also be created in number of ways.
1.Extended threadclass
2.Running thread
 
Is This Answer Correct ?    1 Yes 0 No
Hari
 
  Re: how to create thread in java?
Answer
# 6
we can do it in two ways.
one is by extending thread class and other is by 
implementing Runnable interface.
 here the later one is good because when we are going for 
mutiple inheritance only interface helps us
 
Is This Answer Correct ?    1 Yes 0 No
Vamsikrishna
 
  Re: how to create thread in java?
Answer
# 7
There is two ways for creating Thread in Java:
1.Extending Thread class

2.Implementing Runnable Interface

Second one is much more benificial than 1st one,as we can 
able to avoid the overriden methods.
 
Is This Answer Correct ?    0 Yes 0 No
Bijoy Kumar Baral
 
  Re: how to create thread in java?
Answer
# 8
There are two methods to create thread in java :
(1). By extending the Thread class.
(2). By implementing the Runnable interface.
 
Is This Answer Correct ?    0 Yes 0 No
Rahul Madanan
 
  Re: how to create thread in java?
Answer
# 9
Thread can be created by

1. Extending Thread Class
2. implementing Runnable interface

The second approach is better as if you want to use multiple
inheritance, interface is better option.
 
Is This Answer Correct ?    0 Yes 0 No
Vijay Tandel
 
  Re: how to create thread in java?
Answer
# 10
Thread can be created by tow way
1.interface
2.runnable interface
 
Is This Answer Correct ?    1 Yes 0 No
Mask
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What are the OOPS concepts? Wipro18
how to find no of instances of an object in .NET? Infosys1
Why u change company? BOB-Technologies3
When is a memory allocated to a class?  3
what is a virtual class? Cap-Gemini1
What is an object? HCL7
what is new modifier in C# HCL6
What is polymorphism ? Explain with examples Ness-Technologies6
What are the different forms of polymorphism?? PCS5
What is R T T I ? Ness-Technologies3
what is the difference b/w abstract and interface? Merrill-Lynch1
why destructor is not over loaded?  2
How is exception handling carried out in c++?  1
i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????  3
difference between overloading and overridding  2
What are virtual functions?  2
WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE  1
all about pointers  1
Why many objects can working together? How objects working togetherM I want to see example code.  2
pointers are support in C#? if yes then how to use it? Softvision-Solution4
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com