What will be the output of following program?
public class JavaMeritCampusCom {
static void display(String hai) {
System.out.println(hai);
}
static void display(String... atr) {
for (String element : atr) {
System.out.print(element);
}
}
public static void main(String[] args) {
String str[] = {"U", "R"};
display();
display("Registered");
display("Hai ", "hello ", str[0], " ", str[1], " ", "Registered.");
}
}