OOPs Concepts
Programming and Technical
Why there are no global variables in Java?
Read Solution (Total 2)
-
- Java is pure object oriented language and global variable can access anywhere in the program so security can spoil.
- 10 years agoHelpfull: Yes(0) No(0)
- There are no global variables in JAVA because JAVA is OOP language where more emphasis is given to data rather than to function unlike in POP language where the functions share data globally
- 9 years agoHelpfull: Yes(0) No(0)
OOPs Concepts Other Question