18
What is the output of the following program?
public class Main {
static int count = 0;
Main() { count++; }
public static void main(String[] args) {
new Main(); new Main(); new Main();
System.out.println(count);
}
}Easy