Wednesday, 2 September 2009

Java Certification Question 0083

For a class defined inside a method, what rule governs access to the variables of the enclosing method?

1) The class can access any variable
2) The class can only access static variables
3) The class can only access transient variables
4) The class can only access final variables





Answer)

4) The class can only access final variables

No comments:

Post a Comment