Hi All, a beginner's question: can we name a variable using a Capital letter?
(for instance int Count; or int cOunt; or int cOuNy; or int co_Unt;)
Thanks
You could have answered this yourself by simply trying it out. What happened when you wrote a small example program that tested those variable names out?
Answers
static final
) use ALL_CAPS_WITH_UNDERLINE.In short, yes, all your names are legal, but if you want your programs to be readable, try and follow the guide that GoToLoop gave... :-)
You could have answered this yourself by simply trying it out. What happened when you wrote a small example program that tested those variable names out?
But like PhiLho said, you should follow the standard naming conventions. More info is available here: http://www.oracle.com/technetwork/java/codeconventions-135099.html