Why there are no global variables in java?
Answer / Varun Kumar Saxena
In Java, there are no global variables in the traditional sense. Instead, variables are declared within methods or classes and have their scope limited to those method or class. This helps in encapsulating data, promoting modular programming, and reducing conflicts between variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is web container in java?
Why do we need new date and time api in java se 8?
What do you mean by exception handling?
How do I run a java project?
What do I need to install netbeans?
What is java persistence api used for?
What is the locale class?
Is php faster than java?
What is jsr in java?
Is lambda functional programming?
I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance
I run a web server. Am I at risk? : java security