Re: Poll: Is a Java Method an Instance of the Java Class
java.lang.reflect.Method? Please reply with YES or NO.
Stefan Ram wrote:
Paka Small writes:
Poll: Is a Java Method an Instance of the Java Class
java.lang.reflect.Method?
It's =BBmethod=AB, =BBinstance=AB, and =BBclass=AB;
not =BBMethod=AB, =BBInstance=AB, and =BBClass=AB.
Right on!
Case counts, Paka. Carelessness is harmful.
The JLS3 says:
=BBA method declares executable code that can be invoked,
passing a fixed number of values as arguments.=AB, 8.4.
(So, and when a method already declares something,
what then is a =BBmethod declaration=AB? The declaration
of a declaration?)
Good point, Stefan. I have to conclude that "declares" in the cited passage
means the usual English meaning, not the specific Java meaning. They should=
have said, "A method comprises executable code that ..."
JDK 1.0 and 1.1 have no reflection, so when then answer
would be =BByes=AB, then they would have no methods.
But really, Paka, taking a poll about what is real is stupid and pointless.=
Opinion doesn't alter reality. However, the correct, factual, real answers =
that
you get from everyone agree with each other. What does that tell you, Paka?
It's time to start arguing that there's no train bearing down on you and to=
step off the tracks, Paka.
--
Lew