aspose file tools
The moose likes Beginning Java and the fly likes Method Signature Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Method Signature" Watch "Method Signature" New topic
Author

Method Signature

Vijay Jagannathan
Greenhorn

Joined: Feb 17, 2003
Posts: 22
Hello Ranchers,

I have been given to understand that a method signature consists of:
1> Name of the method
2> The parameter list of the method

and that the return type is not a part of this. Can you tell me if the "throws clause" is a part of the method signature?

Cheers
Vijay
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24054
    
  13

No, it's not. The term "method signature", as used in describing method overloading, includes neither the return type nor the exception declarations. Interestingly, the JVM internally refers to a method using a descriptor that does include the return type -- but still doesn't include the exceptions.


[Jess in Action][AskingGoodQuestions]
Vijay Jagannathan
Greenhorn

Joined: Feb 17, 2003
Posts: 22
Thank you very much for clarifying this
Cheers
Vijay
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Method Signature
 
Similar Threads
Abstract Synchronized
Overriding static functions
need help!!
overloading static methods?
About overloading