• Post Reply Bookmark Topic Watch Topic
  • New Topic

Object  RSS feed

 
bren das
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is isInterrupted() a method of the Object class?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you check the documentation over the object class in JAVA

java.lang.Object

You will see that isInterrupted() is not a method of Object.

Checking the documentation over the Thread Class will learn java.lang.Thread

that isInterrupted() is a method of the Thread.
 
Atul Sawant
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interrupted() and Isinterrupted() both are methods of Thread.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!