Results 1 to 4 of 4
Thread: Variable Nomenclature
- 06-29-2009, 01:03 PM #1
Member
- Join Date
- Jan 2009
- Posts
- 8
- Rep Power
- 0
- 06-29-2009, 01:40 PM #2
Member
- Join Date
- Jun 2009
- Posts
- 1
- Rep Power
- 0
Agent
It's a naming convention defined by all the other language developers.
- 06-29-2009, 03:45 PM #3
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
It's an extremely rigid convention, and they cannot start with numbers for another reason... It's extremely difficult for a compiler to tell the difference if there is a number at the beginning of your variable name. Not so hard after that, but before the compiler knows that is is reading a variable, if you give it what looks like a numerical constant, it will be confused...
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
- 06-29-2009, 06:54 PM #4
To add to what SB said, imagine you are expected to write a parser and is expected to categorize this into digits or variables:
That's a headache to work with isn't it.Java Code:int 123; // whatever code here 123 = 999;
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
Similar Threads
-
About static variable
By MarkWilson in forum New To JavaReplies: 5Last Post: 06-27-2008, 01:43 PM -
getting the value of variable
By Lehane_9 in forum New To JavaReplies: 2Last Post: 03-05-2008, 01:42 AM -
Getting variable value from a variable name
By Java Tip in forum Java TipReplies: 0Last Post: 02-16-2008, 09:26 PM -
Variable issues!
By Alex89 in forum New To JavaReplies: 1Last Post: 11-07-2007, 07:51 PM -
Variable No. of Arguments
By Gajesh Tripathi in forum New To JavaReplies: 2Last Post: 10-31-2007, 02:50 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks