output is
public class Kulls {
public Kulls(int swt){
if(swt == 1)
System.out.println("Light is ON");
else
System.out.println("Lights are OFF ");
}
public static void main(String[] args) {
Kulls ck = new Kulls(1);
Kulls ckk = new Kulls();
}
}

Posted on by