English

Local data ______ (can/cannot) be accessed outside the method.

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?
Chapter 3: User-Defined Methods - Exercises [Page 91]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 3 User-Defined Methods
Exercises | Q 2. (i) | Page 91
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×