Solved

Where Can Local Variables Declared Within a Method's Body Be

Question 39

Multiple Choice

Where can local variables declared within a method's body be used?


A) Only in that method between the line in which they were declared and the closing brace of that method.
B) Same as (a) , but not within while or if statements.
C) Only within while or if statements within the method in which they were declared.
D) Anywhere within the class.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents