Pergunta de entrevista da empresa IBM

How does Scope variable work in Java