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

Sheldon Lynch

Lvl 9
2y ago

What else can I help you with?

Related Questions

How would you define variable in c?

variable is a name that allocates the memory space where you store some data Hardly. Names do not allocate memory space *sigh*


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.


Why variable names are restricted?

To make the compiler/interpreter's work easier. In a happier word any kanji symbol or punctuation mark could be a variable name (or even a space!).


What text results in variable space?

Meant to say variable white space


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.


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.


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.


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 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.


What its another names for space?

Other names for space include the cosmos, the universe, the expanse, or outer space.


What the difference between a variable and control?

The difference between a controlled variable and a variable is in their state. A controlled variable is something which is rigid and constant while a variable is liable to change and inconsistent.