हिंदी

State True or False. A local variable can exist outside its method as well.

Advertisements
Advertisements

प्रश्न

State True or False.

A local variable can exist outside its method as well.

सत्य या असत्य
Advertisements

उत्तर

This statement is false.

Explanation:

A local variable cannot exist outside its method. It is created when the method starts execution and is destroyed when the method ends. It can be accessed only within the method where it is declared.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Encapsulation - Exercises [पृष्ठ १४८]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 6 Encapsulation
Exercises | Q 3. (i) | पृष्ठ १४८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×