In: Computer Science
It means that you can use that variable in that block only.. You can not use that variable outside that block
Please find the below example
class Test{
public void fun(){
int x=10;
// you can use x from here to
System.out.prinln();
System.out.prinln();
System.out.prinln();
System.out.prinln();
System.out.prinln();
System.out.prinln();
// here only
}
public void sun(){
// you can't use the x here
}
}