File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes What is The use of Thread class constructors? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "What is The use of Thread class constructors?" Watch "What is The use of Thread class constructors?" New topic
Author

What is The use of Thread class constructors?

shankara me
Greenhorn

Joined: Nov 30, 2012
Posts: 14
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

Joined: Apr 19, 2013
Posts: 199
    
    1
Hi,

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



Best regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is The use of Thread class constructors?
 
Similar Threads
Passing objects that persist data as mock
How to dynamically Add Classess to Running VMs class path
What does "pass object to constuctor" mean?
What is The use of Thread class constructors?
access modifier and constructors