Warning: Creating default object from empty value in /home/customer/www/expskill.com/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 861
copy constructor Archives

What is the output of the following Java program?

What is the output of the following Java program?
class Person
{
public Person()
{
System.out.println(“Person class constructor called”);
}
}
public class Employee extends Person
{
public Employee()
{
System.out.println(“Employee class constructor called”);
}
public static void main (String args[])
{
Employee e = new Employee();
}
}