Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11804

Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO.

From Paul Cager <paul.cager@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO.
Date 2012-02-07 03:01 -0800
Organization http://groups.google.com
Message-ID <79f793c8-4015-42aa-bf10-120eb089193b@db5g2000vbb.googlegroups.com> (permalink)
References <7747b7da-e579-4514-bdff-a9eb8842cc51@l16g2000vbl.googlegroups.com>

Show all headers | View raw


No.

On Feb 5, 4:56 pm, Paka Small <paka...@tumia.org> wrote:
> Hi,
>
> Poll: Is a Java Method an Instance of the Java Class
> java.lang.reflect.Method?
>
> Please put YES or NO as the first word in your reply. Add comments
> after it if you wish.
>
> I'll make a YES/NO count after some time.

No, Java methods are not instances of a class.

java.lang.reflect.Method's Javadoc defines j.l.r.Method as:

  "A Method provides information about, and access to, a single method
on a class or interface."

If your question was rephrased as "is it useful to think of Java
methods as instances of j.l.r.Method?" I'd still have to say "no". It
just muddies the terminology without any noticeable benefits. It's a
bit like saying "I like to regard java.util.Dates as Strings with a
few additional methods".

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paka Small <paka-en@tumia.org> - 2012-02-05 08:56 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-05 11:38 -0800
    Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paka Small <paka-en@tumia.org> - 2012-02-05 14:53 -0800
      Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-06 01:55 -0800
        Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paka Small <paka-en@tumia.org> - 2012-02-06 11:57 -0800
          Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-06 17:14 -0800
          Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-02-07 09:52 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-02-06 23:54 -0600
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Patricia Shanahan <pats@acm.org> - 2012-02-06 21:58 -0800
    Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paul Cager <paul.cager@googlemail.com> - 2012-02-07 02:41 -0800
      Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Patricia Shanahan <pats@acm.org> - 2012-02-07 09:35 -0800
      Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-07 10:59 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-02-07 01:09 -0600
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Paul Cager <paul.cager@googlemail.com> - 2012-02-07 03:01 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Mayeul <mayeul.marguet@free.fr> - 2012-02-07 12:13 +0100
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Lew <lewbloch@gmail.com> - 2012-02-07 11:04 -0800
  Re: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO. Wanja Gayk <brixomatic@yahoo.com> - 2012-02-08 16:05 +0100

csiph-web