Sunday, 24 March 2013

FAQ #1 Why there are no global variables in Java?

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

t> UA-39527780-1 back to top