Re: use of uppercase and lowercase in codes




"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.



.



Relevant Pages

  • Java not working after IE 7 install
    ... when I go through my ie 6 that I had to reinstall It ... just sits there with a big red x in the upper left hand corner. ... advance tab settings regarding my java and that is what I still get. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • use of uppercase and lowercase in codes
    ... case should be upper case is there any rule. ... BurfferedReader reader ... sorry this is a qustion from an absolute beginner in Java programming ...
    (comp.lang.java.help)
  • Re: *** Sr Java Dev position in MD -- $85/hr
    ... It sounds on the upper end to me, ... but it also doesn't sound like a typical "5 years experience with Java" ... Indians beat New York to advance to the AL Championship Series! ...
    (comp.lang.java.programmer)
  • Re: To Whom it may concern
    ... what is the proper use of upper and lower case? ... I have never heard of capitalising "whom" (other than as the first word of a sentence). ...
    (alt.usage.english)
  • Re: newbie to java and programming
    ... OK that makes for a more challenging problem. ... I would look into regex split. ... the first word, ... http://mindprod.com Again taking new Java programming contracts. ...
    (comp.lang.java.help)