-1

I do not understand what the difference between

int Hello ;

and

int hello ;

is .

Does it make a big difference if i use upper case Characters ?

Touko
  • 31
  • 1
  • 6
  • Why don't you try it and see ?. write a program – TheLostMind Aug 11 '15 at 19:30
  • I tried it and nothing changed but I read that it is against "Javas Grammar " – Touko Aug 11 '15 at 19:31
  • 1
    It is a naming convention. – Marcelo Camargo Aug 11 '15 at 19:32
  • 2
    If `Hello` were an object, this would not work as it would be referencing the class object. `Hello hello = new Hello()` If Hello is not defined, then yes, this woruld work, it is just a guideline to follow for ease of readability. I interpet names beginning with an uppercase letter as a class object. – Matt Clark Aug 11 '15 at 19:32
  • oh ok nice thank you – Touko Aug 11 '15 at 19:33
  • It's an *extremely* strong naming convention. – chrylis -cautiouslyoptimistic- Aug 11 '15 at 19:34
  • @TheLostMind: the OP asked about variable names starting with a lowercase or uppercase character, not camel casing of method names. And I would not regard any answer in the linked question as answer to the OP question. – wero Aug 11 '15 at 19:37
  • @wero - Did you read *Bill's* answer to that question?. Its a convention. I don't think having an answer like *its a convention* makes sense here – TheLostMind Aug 11 '15 at 19:38
  • `Hello.doSomething()` ... is `Hello` an object or a class? Is `doSomething()` an object method or a static method? If you would have followed the convention, then you could answer these questions very easily. – Tom Aug 11 '15 at 19:50

1 Answers1

1

That's because of Java Convention! Actually, you can write a program like the way you're imagining but, you won't be following any pattern.......If you become a real programmer someday, you'll understand that patterns exist to make things better and easier.....