title: which type of attribute of the subclass can not be inherited?
body: <pre><code>class Test4{
      int a=2;
      public static void main(String[] args){
      Test4 test4=new Test4();
      Test4 test5=new Test5();
      System.out.println("test4_a="+test4.a);
      System.out.println("test5_a="+test5.a);
      System.out.println(test4.a==test5.a);
      }
  }
  class Test5 extends Test4{
      float a=2.0f;
  }
  </code></pre>
  
  <p>The two attributes'types are not the same.Why "test4.a==test5.a" is still true?
  Please expain the attributes of the subclass in detail.Thanks!</p>