Can parent and child class in Java have same instance variable?
<p>Consider these classes:</p>

<pre><code>class Parent {
 int a;
}

class Child extends Parent {
 int a; // error?
}
</code></pre>

<p>Should the declaration of <code>a</code> in <code>Child</code> not give compilation error due to multiple declarations of <code>int a</code>?</p>
