What will be the output of following program?
public class EnumerationBoxing {
public static void main(String[] arg) {
Integer input = 1000;
int input1 = input.byteValue();
System.out.print(input1 + " ");
Names names[] = Names.values();
for (Names name : names) {
System.out.print(name + " ");
}
}
}
enum Names {
java(4), Merit(2), Campus(3);
String name = "MeritCampus";
int length;
private Names(int length) {
this.length = length;
}
}