Consider the following code:public class Test { int x = 1…
Consider the following code:public class Test { int x = 10; public void display() { int x = 20; { int y = x + 5; System.out.println(y); } System.out.println(x); } public static void main(String[] args) { new Test().display(); }}The variable y declared inside the inner block is a ____________ variable.