Question ID :955554894422 Which variables of the encapsulationg class, can an inner class access if the inner class is defined in a static method of encapsulating class? a. All static variables b. All final instance variables c. All automatic variables d. All instance variables e. All final automatic variables
Sorry, I'm not familiar with the term automatic variables. Could someone please explain? Thanks.
Answer is A. maha anna has explained it in a previous post automatic variables are those declared in a method. Because is asking only for variables in the containing class, I would leave out the final local variables. Though they are the only automatic variables (along with final parameters) accessible by a local nested class.