answersLogoWhite

0

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

15y ago

What else can I help you with?

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.


How do you determine a valid variable name?

A valid variable name must start with a letter (a-z, A-Z) or an underscore (_) and can be followed by letters, digits (0-9), or underscores. It cannot contain spaces, special characters, or begin with a digit. Additionally, variable names should not be a reserved keyword in the programming language being used. It's also a good practice to use descriptive names that convey the purpose of the variable.


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.


What is the significance of the m prefix in variable names in Python programming?

The m prefix in variable names in Python programming is a convention used to indicate that the variable is meant to be treated as a private or internal variable within a class or module. It helps to differentiate between public and private variables, making the code more organized and easier to understand for other programmers.


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.


What is the relationship between the names of lines and spaces in music notation?

In music notation, the names of lines and spaces correspond to specific notes on the staff. Lines represent higher pitches, while spaces represent lower pitches. Each line and space is assigned a specific note name, allowing musicians to read and play music accurately.


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.