हिंदी

Where are local variables declared in Java?

Advertisements

प्रश्न

Where are local variables declared in Java?

अति संक्षिप्त उत्तर
Advertisements

उत्तर

In Java, local variables are declared inside a method, constructor, or block of code. They can be accessed and used only within the method or block in which they are declared.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Variables and Expressions - SHORT ASSIGNMENTS [पृष्ठ १३६]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 6 Variables and Expressions
SHORT ASSIGNMENTS | Q 30. | पृष्ठ १३६
Advertisements
Share
Notifications



      Forgot password?
Use app×