idea analysis error

interface a {
int bb = 0;
}
class b implements a {
private final static int bb = 2;
}
if you code like this,
public class Test extends b implements a {
public static void main( String[] args ) {
Test t1 = new Test();
System.out.println( "==" + t1.bb );
}
}
idea will tips, t1.bb is not accessible,but compile and run is ok

Please sign in to leave a comment.