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
What is the purpose of the finally clause of a try-catch-finally statement?
Explain about RMI Architecture?
What is the argument type of a programs main() method?
Difference between new operator and class.forname().newinstance()?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
How are the elements of a borderlayout organized?
What value does readline() return when it has reached the end of a file?
Why won’t the jvm terminate when I close all the application windows?
Why is string immutable in java?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
How are commas used in the intialization and iteration parts of a for statement?
What do you know about seam?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What is threadfactory?