Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 44 of 84
 
Marks: +1, -0
Given the following classes

public class Employee {
  public int salary;
}

public class Manager extends Employee {
  public int budget;
}

public class Director extends Manager {
  public int stockOptions;
}

And given the following main method:
public static void main(String[] args) {
  Employee employee = new Employee () ;
  Manager manager = new Manager () ;
  Director director = new Director();
  //line n1
}

Which two options fail to compile when placed at line nl of the main method? (Choose two.)
Go to Question: