IBM interview question

How does Scope variable work in Java