class A{
public static int y;
public static void foo(int x){
System.out.println("mike");
y = x;
}
public static int bar(int z){
System.out.println("bar");
return y = z;
}
public static void main(
String ar[]){
int t =0;
assert (t>0): bar(7);
assert (t>1): foo(8); //can't we add a assert statement to a void method
System.out.println("gayani");
}
}
can't we add a assert statement to a void method.what is the output of the program