Right Place For Right PersonTM 
Sponsored Ads
Buy This Website(This website is for Sale)
Home Tutorials Articles Forums Source Code Books Certifications Interviews Questions

Go: 1 2 3

R4R --->Java --->> SCJP1.5 Chapter10--> Sun Java Certification

Page 1

Question:
Dead Thread State
Post Your View

Answers
When the runing method is completly end then we use this state .thats emans the thread is dead,.now a tym its also a thread object but its not for the excution.Once a thread is dead, it can never be brought back to life! if we 'll invoke start() on a dead Thread instance, we’ll get a runtime excepti  More --- >>

By:umang
Date:17.03.09

Question:
Defining a Thread
Post Your View

Answers
for the dicussing the thread we need a place to put our run method.now we are discussing about the Extending java.lang.Thread method and classes . The simplest way to define code to run in a separate thread is to : > Extend the Thread class. > Override the run() method. w  More --- >>

By:umang
Date:16.03.09

Question:
Defining, Instantiating, and Starting Threads
Post Your View

Answers
for the writing code to define , its instentiate , and start for new threads we are using two threads which are fowwlog as : > java.lang.Thread and > java.lang.Runnable. thats the thread ahve a quality of single thread runtime enviorment , in this quality 1st action is performed and  More --- >>

By:umang
Date:16.03.09

Question:
Instantiating a Thread
Post Your View

Answers
Every thread when its excution is start this is as an instance of thread class.its our run() method is in a Thread subclass or a Runnable implementation class, If we extended the Thread class,instantiation is dead simple: MyThread t = new MyThread(); There are some additional overloaded  More --- >>

By:umang
Date:16.03.09

Question:
Making a Thread
Post Your View

Answers
first in the java language we are using the instance of java.lang.Thread for the thread. then we have to find the methods of thread classes which are managing thread including creating, starting, and pausing them.we have a many methods which are followinf them : > start() > yield() > sleep() > r  More --- >>

By:umang
Date:16.03.09

Question:
Methods from the java.lang.Object Class
Post Your View

Answers
we have a some methods in which thread method inherits he class in the java programming language. These three thread-related methods are following here : > public final void wait() > public final void notify() > public final void notifyAll() The wait() method has three overloaded vers  More --- >>

By:umang
Date:17.03.09

Question:
Methods from the java.lang.Thread Class
Post Your View

Answers
we can see the some methds are follows the ruls of influence thread scheduling, we can see in the following code : public static void sleep(long millis) throws InterruptedException public static void yield() public final void join() public final void setPriority(int newPriority)   More --- >>

By:umang
Date:17.03.09

Question:
New Thread State
Post Your View

Answers
New thread state is the state bassically the thread in this stage eaxactly not alive means its alive as a Thread object.but in this condition its not yet thread of execution.thats y we consider that tym its not alive. this state mainly thread is in after the Thread instance has been instantiated, bu  More --- >>

By:umang
Date:17.03.09

Question:
Preventing the Account Overdraw
Post Your View

Answers
We have a two steps foe the withdrawal—checking the balance and making the withdrawal—are never split apart. We need them to always be performed as one operation, even when the thread falls asleep in between step 1 and step 2! We call this an “atomic operation”because the operation, regardless of th  More --- >>

By:umang
Date:17.03.09

Question:
Preventing Thread Execution
Post Your View

Answers
preventing thread execution is bassically term that Recognize conditions that might prevent a thread from executing. thats why we are uing this .now we can see many times that when the thread running in the non runnable state.and that time our thread is gogin to dead state .m not talking about the s  More --- >>

By:umang
Date:17.03.09

Question:
Runnable Thread State
Post Your View

Answers
runnable state bassically which state when our thread ready for the run .but in that tym also thread scheduler didnt select for the rnning state .when the thread is enters the in this state the statrt method is invoked.When the thread is in the runnable state, it is considered alive.  More --- >>

By:umang
Date:17.03.09

Question:
Running Thread State
Post Your View

Answers
in this state thread is now runing state and also thread scheduler select it for thr the runnning state.  More --- >>

By:umang
Date:17.03.09

Go: 1
2 3 Contact Us
Sponsored Ads
Sponsored Ads
Sponsored Ads
Sponsored Ads
Sponsored Ads
Interview Questions And Answers
Struts interview questions and answers (Subjective)
500 Java Objective Questions and Answer
Core Java Objective Questions And Answers
Core Java Subjective Questions And Answers
Core Java Interview Questions And Answers
Core Java Interview Questions and Answers (Subjective)
Core Java Interview Questions and Answers( Objective)
50 Servlet interview questions
155 Java Interview Questions
EJB Interview Questions and Answers(Subjective)
R4R,JSP Interview Questions and Answer(Subjective)
R4R,Java Servlets Interview Questions and Answers(Subjective)
Core Java Subjective ,Objective and Interview Questions And Answers
275 Core java interview questions
Java Objective Questions and Answer
Java Architect Interview Questions
Applet Interview Questions and Answers
Core Java example
Servlet Objective Questions And Answers
Servlet Subjective Questions And Answers
Servlet Interview Questions And Answers
JSP Objective Questions And Answers
JSP Subjective Questions And Answers
JSP Interview Questions And Answers
JDBC Objective Questions And Answers
JDBC Subjective Questions And Answers
JDBC Interview Questions And Answers
JDBC Interview questions and answers
Networking Interview questions and answers
Servlets Interview questions and answers
EJB Objective Questions And Answers
EJB Subjective Questions And Answers
EJB Interview Questions And Answers
Hibernate Objective Questions And Answers
Hibernate Subjective Questions And Answers
Hibernate Interview Questions And Answers
Spring Objective Questions And Answers
Spring Subjective Questions And Answers
Spring Interview Questions And Answers
Struts Objective Questions And Answers
Struts Subjective Questions And Answers
Struts Interview Questions And Answers
Ant Objective Questions And Answers
Ant Subjective Questions And Answers
Ant Interview Questions And Answers
PHP Objective Questions And Answers
PHP Subjective Questions And Answers
PHP Interview Questions And Answers 1
ASP.net Objective Questions And Answers
ASP.net Subjective Questions And Answers
ASP.net Interview Questions And Answers 1
ASP.net interview questions ,ASP.net interview answers,ASP.net interview questions and answers
PHP interview questions ,PHP interview answers,PHP interview questions and answers
Testing Objective Questions And Answers
Testing Subjective Questions And Answers
Testing Interview Questions And Answers
Ajax Tutorials
Ajax Objective Questions And Answers
Ajax Subjective Questions And Answers
Ajax Interview Questions And Answers
Linux Objective Questions And Answers
Linux Subjective Questions And Answers
Unix Subjective Questions And Answers
Unix Interview Questions And Answers
HR interview questions and answers
HR Interview Questions Tips
HR Objective Questions And Answers
HR Subjective Questions And Answers
HR Interview Questions And Answers
Learn C Language with in a day
 C /C++ Questions
C Objective Questions And Answers
C Subjective Questions And Answers
C Interview Questions And Answers
C Objective Interview Questions And Answers(10)
C Subjective Interview Questions And Answers(100) 
C syntax,semantics and simple programming questions(61) 

Linux Interview Questions And Answers
Unix Objective Questions And Answers
C Aptitude Questions(179)
C++ Interview Questions And Answers    
C++ Objective Questions And Answers
C++ Subjective Questions And Answers
C++ Interview Questions And Answers
C,C++ objective Interview Questions and answers
C Interview Questions And Answers( Objective and Subjective)
C Objective Interview Questions And Answers(10)

C Subjective Interview Questions And Answers(100)

C,C++ Interview Questions

35 C++ Interview Questions And Answers(Subjective)

109 C++ Interview Questions

Java Script Interview Question and Answer(1-10).
 Java Script Interview Question and Answer(11-20).
Java Script  Interview Question and Answer(21-30).
Java Script Interview Question and Answer(31-40).
Javascript Objective Questions And Answers
Javascript Subjective Questions And Answers
Javascript Interview Questions And Answers
MFC Interview Questions And Answers(Subjective)

MFC Interview Questions And Answers(Subjective)

ATL Interview Questions And Answers(Subjective)

COM DCOM Interview Questions And Answers(Subjective)

Win32API Interview Questions And Answers(Subjective)

ActiveX Interview Questions And Answers(Subjective)

R4R, VC++ AllOther Interview Questions And Answers(Subjective)

PL/SQL Interview Questions And Answers(Subjective)

152 PL/SQL Interview Questions And Answers(Subjective)

Asp Objective Questions And Answers
Asp Subjective Questions And Answers
Asp Interview Questions And Answers 1

VB Objective Questions And Answers

Contact US:

Your Name:


Your Email:

Message:

Comments:

Give Your Comments:

Your Name:
Your Email ID :
Comments :

Advertiser PRIVACY POLICY ||User PRIVACY POLICY || R4R Group Srvices