What will be the output of the following program?
public class LovePureImpure {
static {
System.out.println("Love is neither pure nor impure");
}
public LovePureImpure() {
System.out.println("Love is purely impure and impurely pure");
}
public static void main(String[] args) {
Pure pure = null;
Impure impure = new Impure();
pure = new Pure();
}
}
class Pure {
static {
System.out.println("I am pure Love");
}
public Pure() {
System.out.println("I am impure Love disguised as pure Love");
}
}
class Impure extends Pure {
public Impure() {
System.out.println("I am impure Love");
}
}