0
Anonymous
Global variables are globally accessible. Java does not support globally accessible variables due to following reasons:
Wiki User
Chat with our AI personalities
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.
No, threads do not share global variables by default. Each thread has its own copy of global variables, which means changes made to global variables in one thread do not affect the values in other threads.
Another name of global variable is "EXTERNAL VARIABLES".
Yes. You can have as many variables as you want in Java