Global variables are globally accessible. Java does not support globally accessible variables due to following reasons:
There's no global variables in Java.
in order to acheive a inheritance and data encapsulation property global variables are not declared in java.
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
no
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.
yes we can define a variable in an interface in java.
Another name of global variable is "EXTERNAL VARIABLES".
no
Variables that are declared globally outside every program are called global variables.
Yes. You can have as many variables as you want in Java