What is the output of the program?
public class DemoOnEmployee {
public static void main(String args[]) {
class Employee {
public String name;
public Employee(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
Object object = new Employee("Merit Campus");
System.out.println(object.getName());
}
}