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  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
can u override the start() method of Thread class
 Question Submitted By :: Ani.arava
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can u override the start() method of Thread class
Answer
# 1
Yes you can override the start method of the thread class.

if you extend from the thread class. and override.
then only start method will be called
 
Is This Answer Correct ?    1 Yes 0 No
Gcd
 
  Re: can u override the start() method of Thread class
Answer
# 2
we can override  start() method present in Thread class.but
we have to follow following steps:

1) first our class must extend thread class.
2)then we have to override thread class start() in such way
that :
a) It should instantiate and register our new thread with 
thread scheduler.
b)  it should call run() method.(it may be our overridden
run method or thread class run() method)
 
Is This Answer Correct ?    1 Yes 3 No
Subhareddy
 
 
 
  Re: can u override the start() method of Thread class
Answer
# 3
Subhareddy, can u please send me one example on above
question??
 
Is This Answer Correct ?    0 Yes 0 No
Sandya
 
  Re: can u override the start() method of Thread class
Answer
# 4
We can override start() method but it is not recommended. 
Why because...the start() method of Thread class first 
registers a new thread with the Thread Scheduler and it 
invokes run() method.
 
Is This Answer Correct ?    0 Yes 0 No
Vishwanath
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is jdk1.5 features? Virtusa2
How to call static method? Epoch3
What is a package?  2
Difference between overloading and overridding?  4
What are inner and anonymous class?  2
What is the preferred size of a component?  1
What are Font and FontMetrics classes?  1
how to use finalize()Method to resources TCS2
what are the differences between final,finally,finalize methods?  7
what is difference between Action messages and Action errors? TCS1
What is unicode?  2
How to add panel to a Frame?  2
Name the types of 'priority'?  2
methods in Applet?  1
my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??  1
when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?  4
If set accepts only one argument then how can it compare two objects to avoid duplicates  3
What is constructor and virtual function?  4
What is the difference between a public and a non-public class?  2
What is the difference between error and exception and explain in simple words not whatever is given in the book.  6
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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