File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes method signatures. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "method signatures." Watch "method signatures." New topic
Author

method signatures.

Vishy Karl
Ranch Hand

Joined: Sep 08, 2003
Posts: 116
Hi All,
The following Q appears in javacertificate.
Which of the following statements are true? [Check all correct answers]

1 The notify() method is a static method of the Thread class
2 The notify() method wakes up a single thread that is waiting for the object's monitor.
3 The notify method is overridden in the Thread class.
4 The notify method throws an IllegalMonitorStateException

The answer is 2,4.
Now my Question is about option 4. How can I know which method throws what exception ? I searched the JLS but could not find it.
Are we supposed to remember all the method signatures(including the exceptions they can throw ?) If yes then where can I find it ?
(By the way the K & B bk defines the notify method as only.
public final void notify()
Plz. clarify regarding this. Thanks in advance.................
C ya,


"The man who can drive himself further once the effort gets painful is the man who will win." <br />Roger Bannister
Vicken Karaoghlanian
Ranch Hand

Joined: Jul 21, 2003
Posts: 522
Try the Java API doc here


- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. <br />- What truth? <br />- That there is no spoon!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: method signatures.
 
Similar Threads
thread
notify() in threads
sample question on threads
javaprepare.com mock exam
Section 7 mock test questions