File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Object" Watch "Object" New topic


bren das

Joined: Feb 19, 2007
Posts: 5
Is isInterrupted() a method of the Object class?
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
If you check the documentation over the object class in JAVA


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.

Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Atul Sawant
Ranch Hand

Joined: Jul 06, 2006
Posts: 304
Interrupted() and Isinterrupted() both are methods of Thread.

Mission SCWCD. Mission SCJP Complete: SCJP 1.4 - 91%
I agree. Here's the link:
subject: Object
It's not a secret anymore!