Answer: Global variables are globally accessible. Java does not
support globally accessible variables due to following reasons:
- The global variables breaks the referential transparency.
- Global variables creates collisions in namespace.
No comments:
Post a Comment