Explain the output of the program?
In this program I want to use the access specifier inside the method so is
it possible
class AccessTest{
int i;
public static void main (String... str)
{
int i;
private int a = 1;
protected int b = 1;
public int c = 1;
System.out.print (a+b+c);
}
}
what is the final output can anybody explain this ?
No comments:
Post a Comment