Suppose I have a function in Java.
public function goodname(int a){
    int b=8;
}
Is there any way to access variable b without getter and setter?
I was asked this question in an interview. My answer was NO but he insisted that there is a way i am wondering how can i do this?
 
     
     
    