This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is The use of Thread class constructors?

 
shankara me
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
There are two constructors in Thread class like
1)public Thread();
2) public Thread(String name)
-->What is the use of above constructors ?
-->Actually they are useful for creating objects for Thread class(not for subclass of Thread class).What is The use of creating objects for Thread class(not for subclass of Thread class)?
 
Carles Gasques
Ranch Hand
Posts: 199
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I hope that the code of a subclass of thread will be self explanatory



Best regards,
 
We begin by testing your absorbancy by exposing you to this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!