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.
a. Only in that method between the line in which they were declared and the closing brace of that method.
Computer Science & Information Technology
You might also like to view...
Describe the types of layouts that are used to design a form.?
What will be an ideal response?
Computer Science & Information Technology
Which of the following is a critical component in avoiding accidents by identifying potential hazards?
a. Fire extinguisher b. Exit route c. SDS d. SLA e. None of the above
Computer Science & Information Technology