Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What method is used to create the daemon thread?



What method is used to create the daemon thread?..

Answer / 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

More Advanced Java Interview Questions

What are the services in RMI ?

0 Answers  


Can I map more than one table in a cmp?

0 Answers  


Explain the methods of Naming class, rebind( ) and lookup()?

1 Answers  


What is the immediate superclass of the applet class?

0 Answers  


What are the methods used for inter-thread communication? and in what class these methods are defined?

2 Answers  


Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?

5 Answers   HCL, Mobillo Venture,


Explain Life cycle of Servlet Filter.

2 Answers   InfoBrain, ITC Infotech,


Why do threads block on i/o?

0 Answers  


What’s jboss jbpm?

0 Answers  


How would you create a button with rounded edges?

0 Answers  


Why is string immutable in java?

0 Answers  


What is the need of serialize?

2 Answers   Wipro,


Categories