Java
Programming and Technical
Programming
Definition
Q. Why there are no global variables in Java?
A. Global variables are globally accessible. Java does not support globally accessible variables due to following reasons:
1)The global variables breaks the referential transparency
2)Global variables creates collisions in namespace
Read Solution (Total 0)
Java Other Question