Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Designation of a non-static method Date: Thu, 20 Dec 2012 14:35:50 -0500 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 20 Dec 2012 19:35:50 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ffb8f7085759b339c1002252b48331a4"; logging-data="15278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NFmPsF71R9MHQf9O94E2x" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:aJz+FLU9k48BRy70McL4A0bicPU= Xref: csiph.com comp.lang.java.programmer:20640 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