Re: use of uppercase and lowercase in codes
- From: "Hal Rosser" <hmrosser@xxxxxxxxxxxxx>
- Date: Mon, 21 Nov 2005 23:08:53 -0500
"venkat" <venkat1926@xxxxxxxxx> wrote in message
news:1132630832.601003.231500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I am familiar with vba for excel. there you type in any case, the code
> staements are automatically changed to correct case. In java
> programming it is notdone. Even though I have vague notion when the
> case should be upper case is there any rule . for e.g in the statement
> String firstname=""
> the first s should be upper case
>
> BurfferedReader reader
> in the first word B and R upper case but in <reader? r is lower case.
>
> where can I get such information.
>
> sorry this is a qustion from an absolute beginner in Java programming
> and plead for your indulgence. thanks regars.
>
I'm almost afraid to answer, because I do make mistakes- but as a general
rule:
Most method names (call them 'identifiers') begin with lower case letters,
and use 'mixed case' capitalization. By that I mean if the method name is a
composite of more than one word, that the first letter of each word is
capitalized after the first word. Same for variables. But Class names begin
with upper case letters. . Constants are usually ALL_CAPS with words
separated by underscores.
.
- Follow-Ups:
- Re: use of uppercase and lowercase in codes
- From: venkat
- Re: use of uppercase and lowercase in codes
- References:
- use of uppercase and lowercase in codes
- From: venkat
- use of uppercase and lowercase in codes
- Prev by Date: use of uppercase and lowercase in codes
- Next by Date: Re: use of uppercase and lowercase in codes
- Previous by thread: use of uppercase and lowercase in codes
- Next by thread: Re: use of uppercase and lowercase in codes
- Index(es):
Relevant Pages
|