• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread doubt  RSS feed

 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If i extend the class with Runnable interface,inside the class getName() method is not working.I alredy used that getName() method in the subclass extending Thread.But i don't know why that is not working in Runnable interface.Any help?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only method in the Runnable interface is run(). The Thread class implements Runnable and extends the interface by adding several other methods, including getName().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!