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


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

Re: Designation of a non-static method

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Designation of a non-static method
Date 2012-12-20 14:35 -0500
Organization A noiseless patient Spider
Message-ID <kavpam$ete$1@dont-email.me> (permalink)
References <nextDouble-20121220200056@ram.dialup.fu-berlin.de>

Show all headers | View raw


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

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


Thread

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

csiph-web