Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic