File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatic Variables??

 
Mike Kelly
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Kelly:
Sorry, I'm not familiar with the term automatic variables. Could someone please explain?

Automatic variables is just another name for parameters in a method.
I hope that helps,
Corey
 
Jose Botella
Ranch Hand
Posts: 2120
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mike Kelly
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Jqplus gave the answer as A & E.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic