interface Ques01 {
String str = " Ques01 " ;
}
class Ques02 {
String str = " Ques03 " ;
};
class Ques extends Ques02 implements Ques01 {
String a = "popo";
public static void main ( String args [ ] ) {
System . out . println (str ) ;
}
}
It gives a compile time error about the str variable being ambigious .... but according to me the str variable in the interface is implicitly static only that should be considered by main (as only that can be l;egally used)
Please can some one throw some light on it
Thanks