Back to Top

Sunday 15 January 2012

JAVA : Why there are no global variables in Java?

  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.

2 Responses to “ JAVA : Why there are no global variables in Java? ”

Dipanwita said...
10 August 2018 at 15:31

nice. java training in chennai


Nisha San said...
6 July 2019 at 17:30

Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
Java Training in Chennai | J2EE Training in Chennai | Advanced Java Training in Chennai | Core Java Training in Chennai | Java Training institute in Chennai


Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar