I have a doubt in the given code.Can a method have
another method inside it ?. i am confused about this concept. kindly help.
according to me,this prg should not work.
CODE:
what variable may be refered correctly at HERE.
THE CODE IS TAKEN FROM J@WHIZ SIMULATOR
public class Outer{
public int a=1;
prvate int b=2;
public void method(final int c)
{
int d=3;
class inner
{
private void imethod(int e)
{
HERE
}
}
}
}
choose the all the right options :
1) a
2) b
3) c
4) d
5) e