Advertisements
Advertisements
Question
Local data ______ (can/cannot) be accessed outside the method.
Fill in the Blanks
Advertisements
Solution
Local data cannot be accessed outside the method.
Explanation:
- Local data (local variables) are created inside a method and exist only while the method is executing.
- Therefore, local data cannot be accessed outside the method.
shaalaa.com
Is there an error in this question or solution?
