class Base{
static int oak=99;
}
public class Doverdale extends Base{
public static void main(
String argv[]){
Doverdale d = new Doverdale();
d.amethod();
}
public void amethod(){
//Here
}
}
Which of the following if placed after the comment //Here, will compile and modify the value of the variable oak?
1) super.oak=1;
2) oak=33;
3) Base.oak=22;
4) oak=50.1;
Answer is 1,2,3. Wouldn't 4 be implicitly widened?