Hi Ranchers,
Since the variable declared in the interface are implicitly static and final I thing in the code given below.
<code>
interface Ques01 {String str="Ques01";}
class Ques02 {
String str="Ques03";
}
class Ques extends Ques02 implements Ques01 {
public static void main(String args []){
System.out.println(str);
}
}
</code>
when we execute the main method JVM should select the static variable of the interface(Ques01).As we are not using any reference of the class Ques02 in the static context(main method).