You need to set The CLASSPATH variable which is an argument set on the command-line that tells the Java Virtual Machine where to look for user-defined classes and packages in Java programs. Syntax is java -classpath "path to the packages". Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. To set the PATH permanently, add the full path of the j2sdk1.4.2_version\bin directory to the PATH variable.
-sravyaa
Which sort of environment varibles? In Windows? Right-click my computer -> Properties -> Advanced -> Environment Variables -> New... You can creatwe user variables or system variables... cheers
Environment variables are a set of dynamic values that can affect the way running processes will behave on a computer.
Property allows access to a variables like a get-set method in Java.
SET is for viewing and changing environment variables as well as storing and manipulating your own variables in batch scripts.
Classpath for Java can only be set depending on what system is being used. The environment also has to be specified in order for Classpath to work at its best.
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
no
Global variables are globally accessible. Java does not support globally accessible variables due to following reasons:The global variables breaks the referential transparencyGlobal variables creates collisions in namespac
There's no global variables 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.