Evil Java Interview Question
class Fruit {
public Fruit() {
init();
}
protected void init() {
}
}
class Orange extends Fruit {
private String color = null;
public Orange() {
super();
}
protected void init() {
color = "Orange";
}
}
If I create a new instance of Orange what is the variable ‘color’ set to? The answer is null.

