How this program Behave, and How it Behave?
I didnt get the output of this program.
class xyz {
int i=20;
public void abc()
{
System.out.print("Hi how are u:->"+this.i);
}
}
public class InnerClassDemo extends xyz{
int i=10;
public static void main(String []args)
{
xyz x=new InnerClassDemo();
System.out.println("hi:->"+x.i);
x.abc();
}
public List getList()
{
return new ArrayList();
}
public void abc()
{
System.out.print("We are best:->"+this.i);
}
}

