Tricky Java: Final in Anonymous Classes

Report a typo

Given the following code snippet in Java, what is true regarding anonymous classes?

interface Movable { 
    void move(); 
} 

final int speed = 10; 
Movable object = new Movable() { 
    @Override public void move() { 
        speed = 20; 
    } 
};
Select one option from the list
___

Create a free account to access the full topic