🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #899

Re: Static Method ? Static Variable ?

#899
From: Benjamin Johnston
Date: Tue, 07 Mar 2000 00:00
19 lines
1403 bytes
> I think the convention is to name variable in the following way.
> 
> String eat;
> static String _eat = "this";
> final static String EAT = "this"; // I my self use all caps for finals
> (globals).
> 
Actually, the static variable should not have a proceeding
underscore... In fact the java naming conventions state that, "Variable
names should not start with underscore _ or dollar sign $ characters,
even though both are allowed".

You are correct on the other examples, though.

See:
http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html#34851

-Benjamin Johnston
s355171@student.uq.edu.au
Technical Details
Message-ID: <Pine.OSF.4.21.0003071034590.27098-100000@student.uq.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6wmv4.1491$vW.3803@news-server.bigpond.net.au> <34Gw4.109$Aq5.6072@nsw.nnrp.telstra.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,9fd80fce16393cf3
X-Google-Attributes: gid10d6db,public
From: Benjamin Johnston <s355171@student.uq.edu.au>
Subject: Re: Static Method ? Static Variable ?
Date: 2000/03/07
Message-ID: <Pine.OSF.4.21.0003071034590.27098-100000@student.uq.edu.au>
X-Deja-AN: 594048251
References: <6wmv4.1491$vW.3803@news-server.bigpond.net.au> <34Gw4.109$Aq5.6072@nsw.nnrp.telstra.net>
To: Cannon <cannon@basketball.net.au>
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Complaints-To: news@uq.edu.au
X-Trace: bunyip.cc.uq.edu.au 952389772 15587 130.102.2.20 (7 Mar 2000 00:42:52 GMT)
Organization: University of Queensland
Mime-Version: 1.0
NNTP-Posting-Date: 7 Mar 2000 00:42:52 GMT
Newsgroups: aus.computers.java