What do you mean by global variable?



What do you mean by global variable?..

Answer / Alok Kumar Agmani

In Core Java, a global variable is a variable that is defined outside of any function or method. This means it can be accessed and modified from anywhere within the program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Is arraylist a class in java?

1 Answers  


What is the difference between double and float variables in java?

1 Answers  


Which variables are stored in stack?

1 Answers  


Explain the importance of finally block in java?

1 Answers  


Can a final method be overloaded?

1 Answers  


Explain try and catch keywords in java?

1 Answers  


How do you check if a number is a perfect square?

1 Answers  


How many types of constructors are used in java?

1 Answers  


Where pragma is used?

1 Answers  


how can be object class inherited to all class in a program when java does not support multiple inheritance??

4 Answers  


Explain about static nested classes in java?

1 Answers  


What is string pooling concept?

1 Answers  


Categories