Answer Posted / ranganathkini
1. Extending the Thread class
2. Implementing Runnable interface in a class and then
passing its reference to a new Thread.
3. Creating an anonymous class to extend the Thread class.
4. Creating an anonymous class to implement the Runnable
interface and then passing its reference to a new Thread.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain the advantages and disadvantages of detached objects.
What are callback interfaces?
What is mdb and what is the special feature of that?
Difference between swing and awt?
Which textcomponent method is used to set a textcomponent to the read-only state?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
What class is used to create Server side object ?
How to deploy Jar, War files in J2EE?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Why a client should be multithreading? Explain.
Why are component architectures useful?
What is threadfactory?
What modifiers may be used with an interface declaration?
What is glasgow?
When a thread blocks on i/o, what state does it enter?