X-Received: by 10.224.184.11 with SMTP id ci11mr5200028qab.1.1356035485149; Thu, 20 Dec 2012 12:31:25 -0800 (PST) Received: by 10.49.12.97 with SMTP id x1mr1584735qeb.25.1356035485125; Thu, 20 Dec 2012 12:31:25 -0800 (PST) Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.216.87.MISMATCH!ee4no1255208qab.0!news-out.google.com!k2ni865qap.0!nntp.google.com!ee4no1301608qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Thu, 20 Dec 2012 12:31:24 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 69.28.149.29 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <52fccac6-d78f-4958-a0dc-a9cc37ea3ada@googlegroups.com> Subject: Re: Designation of a non-static method From: Lew Injection-Date: Thu, 20 Dec 2012 20:31:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:20642 Stefan Ram wrote: > I used to think that it was common usage to use =BBC.f()=AB for > a static method =BBf()=AB and =BBC#f()=AB for a non-static method > =BBf()=AB of a class =BBC=AB. AFAIK it still is. > Yet, in > http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html > , there is a reference =BBRandom.nextDouble()=AB given > (at the end of the expanded documentation of =BBrandom()=AB), > that refers to the non-static method > http://docs.oracle.com/javase/7/docs/api/java/util/Random.html#nextDouble= () >=20 > . So is this now the official Java style to designate > even a non-static method =BBf()=AB of a class C by =BBC.f()=AB? 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=20 that it is common, particularly among more experienced and competent Java d= evelopers. I have never seen it proffered as an official standard. Could you point to = a reference=20 that it is or ever was? --=20 Lew