GIAC
GSSP-JAVA · Question #92
You work as a Software Developer for TechnoZen Inc. You create an application using Java. You define a method, named myMethod. You also define a class, named myClass, within myMethod. Which of the…
Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #92. The question stem and answer options stay visible for context.
Question
You work as a Software Developer for TechnoZen Inc. You create an application using Java. You define a method, named myMethod. You also define a class, named myClass, within myMethod. Which of the following rules governs the access to the variables of the enclosing method?
Options
- AmyClass can access only final variables.
- BmyClass can access only static variables.
- CmyClass can access only transient variables.
- DmyClass can access any variable.
Unlock GSSP-JAVA to see the answer
You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.