Answer Posted / ranganathkini
the Thread.setDaemon() has to be invoked. It takes one
boolean param indicating if the thread is a daemon thread
or not. the setDaemon() has to invoked before the start()
method is called on the thread, else an
IllegalThreadStateException is throw indicating that the
thread is active and its daemon state cannot be altered.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is mdb and what is the special feature of that?
Which textcomponent method is used to set a textcomponent to the read-only state?
What are the design considerations while making a choice between using interface and abstract class?
Write a program to show synchronization?
Do I need to import javlang package any time? Why ?
Why is actionform a base class rather than an interface?
What are the different approaches to represent an inheritance hierarchy?
What are the different types of exception?
What is aop(assepct oriented programing)?
Name the eight primitive java types.
What are the oops concept?
What is meant by method chaining?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What is prototype?
what is the use of State Factories?