IBM Interview Question

How does Scope variable work in Java