11
What is the output of the following program?
public class Main {
String name = "none";
Main() { this("default"); }
Main(String n) { name = n; }
public static void main(String[] args) {
System.out.println(new Main().name);
}
}Easy