What do you call a method, er, header in Java?
Thursday, September 17th, 2009 23:46What do practicing Java programmers call the part of a method definition that isn't the { body }?
__________/ this bit here \___________
public static void main(String[] args) {
// not this part
}
A quick search turned up the Java Language Specification, Second Edition calling it a MethodHeader in the grammar, but it doesn't use that term in the text and I want to know what term(s) are used in practice, not solely by language lawyers.
(“Signature” is not correct, as that includes only the method name and parameter types, not modifiers and result type.)
(no subject)
Date: 2009-09-18 04:08 (UTC)(no subject)
Date: 2009-09-18 05:51 (UTC)I used to call it signature
Date: 2009-09-18 10:26 (UTC)(no subject)
Date: 2009-09-18 14:03 (UTC)(no subject)
Date: 2009-09-18 17:20 (UTC)Unnecessary boilerplate
Date: 2009-09-19 13:11 (UTC)Signature
Date: 2009-09-24 21:00 (UTC)