• Post Reply Bookmark Topic Watch Topic
  • New Topic

Method Signature  RSS feed

 
Vijay Jagannathan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vijay Jagannathan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for clarifying this
Cheers
Vijay
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!