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


Groups > comp.lang.java.programmer > #20640 > unrolled thread

Re: Designation of a non-static method

Started byEric Sosman <esosman@comcast-dot-net.invalid>
First post2012-12-20 14:35 -0500
Last post2012-12-20 14:35 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Designation of a non-static method Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-12-20 14:35 -0500

#20640 — Re: Designation of a non-static method

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2012-12-20 14:35 -0500
SubjectRe: Designation of a non-static method
Message-ID<kavpam$ete$1@dont-email.me>
On 12/20/2012 2:06 PM, Stefan Ram wrote:
>    I used to think that it was common usage to use »C.f()« for
>    a static method »f()« and »C#f()« for a non-static method
>    »f()« of a class »C«.
>
>    Yet, in
>
> http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html
>
>    , there is a reference »Random.nextDouble()« given
>    (at the end of the expanded documentation of »random()«),
>    that refers to the non-static method
>
> http://docs.oracle.com/javase/7/docs/api/java/util/Random.html#nextDouble()
>
>    . So is this now the official Java style to designate
>    even a non-static method »f()« of a class C by »C.f()«?

     Don't fret about it.

	"A foolish consistency is the hobgoblin of little minds,
	adored by little statesmen and philosophers and divines."
	-- RWE, "Self-Reliance"

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web