Some basic conventions are:
1. you cannot have keywords as names
2. All identifiers have to start with an alphabet
3. Except '_' and '$' no other special character is allowed in names
4. When there are multiple words in an identifier we usually capitalize the first alphabets of each word. For example if an identifier represents name of employee then we name it as nameOfEmployee. The first word would remain normal with no capitalization
etc...
Chat with our AI personalities
All variable names must begin with a letter of the alphabet, an underscore ( _ ), or a dollar sign ($). The rest of the characters may be any of those previously mentioned plus the digits 0-9.
The convention is to always use a letter of the alphabet. The dollar sign and the underscore are discouraged.
You can name your variable anything you like, using most symbols. A few symbols are excluded, like a hyphen (which would be confused with a minus), and the first symbol for the variable name can't be a digit. However, try not to use a lot of weird symbols; just using letters, digits, and the underscore is probably safest.
There are also certain recommended conventions for naming variables. The compiler won't complain if you don't follow them, but they certainly help to make your program more readable. Mainly:
Search for the variable naming conventions from Sun, for more details on the recommended naming conventions.
JNDI stands for Java Naming and Directory Interface JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
At any given point of time you cann't get the address of a variables of java program. This is meant for security purpose only.
Reference variables
No, static variables are not serialized.