Consider the following Java code snippet:
final int x = 10;
SomeInterface si = new SomeInterface() {
public int method() {
return x;
}
};
In this code, an anonymous class is created that implements SomeInterface and accesses a final variable declared in the enclosing scope. Which statements about this code are true?