Answer Posted / rajshekhar
There are 2 ways to create a thread
1.By extending thread class
2.and the second one is by implementing runnable
interface.among the two the second one is more common and
better to use.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
Why do threads block on i/o?
What are the design considerations while making a choice between using interface and abstract class?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
wahts is mean by dynavalidatorform in struts/
What happens when a thread cannot acquire a lock on an object?
How many times may an objects finalize() method be invoked by the garbage collector?
hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me
Difference between DurableSubscription and non- DurableSubscription?
What is jboss?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
How can I avoid validating a form before data is entered?
How to determine SGA site?
What is the immediate superclass of the applet class?
How would you reatach detached objects to a session when the same object has already been loaded into the session?