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
Which container method is used to cause a container to be laid out and redisplayed?
Is “abc” a primitive value?
What is the difference between the font and fontmetrics classes?
What is the relationship between an event-listener interface and an event-adapter class?
Difference between DurableSubscription and non- DurableSubscription?
What is the difference between a static and a non-static inner class?
What are the steps to write p-to-p model application?
What modifiers may be used with an inner class that is a member of an outer class?
Explain the difference between object state and behavior?
What are the different approaches to represent an inheritance hierarchy?
What is the purpose of the finally clause of a try-catch-finally statement?
What are the design considerations while making a choice between using interface and abstract class?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What are the call back methods in entity bean?
What is the map interface?