Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20642 > unrolled thread
| Started by | Lew <lewbloch@gmail.com> |
|---|---|
| First post | 2012-12-20 12:31 -0800 |
| Last post | 2012-12-20 12:31 -0800 |
| 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 Lew <lewbloch@gmail.com> - 2012-12-20 12:31 -0800
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-12-20 12:31 -0800 |
| Subject | Re: Designation of a non-static method |
| Message-ID | <52fccac6-d78f-4958-a0dc-a9cc37ea3ada@googlegroups.com> |
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«. AFAIK it still is. > 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()«? No. Was it ever the official style to do it the common way? I have not seen the "#/." convention universally employed, although I have observed that it is common, particularly among more experienced and competent Java developers. I have never seen it proffered as an official standard. Could you point to a reference that it is or ever was? -- Lew
Back to top | Article view | comp.lang.java.programmer
csiph-web