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 Android Security Essentials Live Lessons this week in the Android 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,
 
 
subject: What is The use of Thread class constructors?
 
Similar Threads
What is The use of Thread class constructors?
Passing objects that persist data as mock
How to dynamically Add Classess to Running VMs class path
access modifier and constructors
What does "pass object to constuctor" mean?