Computer Applications
What do you mean by the scope of variables in Java?
Encapsulation & Inheritance in Java
2 Likes
Answer
The scope of a variable refers to that part of the program in which the variable is accessible.
Answered By
1 Like
Related Questions
Explain visibility in terms of the following access modifiers:
- public
- private
- protected
- no modifier specified
Why is it a good idea to make all instance variables private?
Explain the scope of the following variables in Java:
- Local variables
- Parameter variables
- Instance variables
- Class variables
Explain the scope of variables in blocks and sub-blocks.