Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20640 > unrolled thread
| Started by | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| First post | 2012-12-20 14:35 -0500 |
| Last post | 2012-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.
Re: Designation of a non-static method Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-12-20 14:35 -0500
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2012-12-20 14:35 -0500 |
| Subject | Re: 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
Back to top | Article view | comp.lang.java.programmer
csiph-web