answersLogoWhite

0


Best Answer

No.

int my variable; <- not a valid declaration

Java naming conventions say that you should use capital letters to differentiate words in a variable name.

int myVariable; <- valid!

Note that you can use the _ (underscore) character, as well, though some people suggest avoiding this.

int my_variable; <- also valid!

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can variable names can have spaces between them?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is there allowed to be spaces in HTML coding?

There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.


How and why are variable names used in programming to process data?

Variable names are used so the code is readable. When the code is compiled to machine languages, it no longer uses the variable names to understand it's operations...sometimes variable names are kept as metadata to help debug but the computer does not need them to execute the program...they are for us so we can easily understand what we are doing.


In a DOS batch file how do you copy a local variable to a global variable?

1. Start line with an ENDLOCAL command. 2. Add an ampersand and a SET global = local variable. 3. Repeat step 2 for additional variables. Notes: Works vice versa with the SETLOCAL command. Works in nested arrangements of SETLOCAL and ENDLOCAL. Local and global variables can have same names. Spaces are permitted after a SETLOCAL or ENDLOCAL but might get added to a variable's value if put after a SET command so recommend avoiding spaces before the second and subsequent ampersands. Spaces are permitted but not required after the ampersand and before a SET command. The first line of this example shows where spaces are allowed, the last line shows where spaces can be omitted. SETLOCAL &amp; SET LTEMP=%TEMP%&amp; SET PATH=%PATH% SET LPATH=C:\BAT;%PATH% SET L1=valueL1 SET P1=valueP1 ENDLOCAL&amp;SET G1=%L1%&amp;SET P1=%P1%&amp;SET PATH=%LPATH%


How do you make a on peace sign HTML?

&amp; #9774 ; all together..No spaces between "&amp;" and #9774..No spaces in between #9774 and ";" &amp;#9774;


WAP to show the difference between a variable and static variable?

difference between constant and static variables in java

Related questions

What are rules used in naming php variable?

Well, firstly, all PHP variable names begin with the dollar sign. After that...PHP variable names must begin with either a letter or an underscore ( _ )PHP variable names can only contain letters, numbers, and underscores.A variable cannot contain spaces. Therefore variable names using more than one word should be separated using an underscore or camel cased. e.g. $multiple_word_variable_name OR $multipleWordVariableName.


How does the language support variable names Are variable names case sensitive?

&gt; How does the language support variable names? You can use any identifier to name a variable. &gt; Are variable names case sensitive? Yes, in some languages, they are.


Is there allowed to be spaces in HTML coding?

There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.


When was The Spaces in Between created?

The Spaces in Between was created in 2007.


What are the 5 components of a good graph?

The 5 components of a good graph are... 1. Independent variable 2. Dependent variable 3. Trend line 4. Graph title 5.To have equal intervals or spaces in-between numbers on a grid


What are the similarities between a control and a variable?

There are not any similarities between a control and a variable. However, a Control Variable, is a variable.


Can you use spaces in your file names?

yes


Can cell names contain spaces in Excel?

No.


In most languages the first character of a variable name cannot be a number?

In most programming languages, variable names cannot start with a number. Variable names must start with a letter, underscore (_), or dollar sign ($). This rule is in place to differentiate variable names from numeric literals.


How do declaire a variables names in c?

Variable-names aren't to be declared.


How do you combine names in column a and b to column C with no spaces?

To combine names in A1 and B1, put the following formula in C1: =A1&B1. If you want a space between the names, use the formula =A1&" "&B1.


How and why are variable names used in programming to process data?

Variable names are used so the code is readable. When the code is compiled to machine languages, it no longer uses the variable names to understand it's operations...sometimes variable names are kept as metadata to help debug but the computer does not need them to execute the program...they are for us so we can easily understand what we are doing.