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

© examsiri.com
Question : 15 of 84
 
Marks: +1, -0
Givenpublic class Employee {
 String name;
 boolean contract;
 double salary;

 Employee() {
  // line n1
 }

 public String toString() {
  return name + ":" + contract + ":" + salary;
 }

 public static void main(String[] args) {
  Employee e = new Employee();
  // line n2
  System.out.print(e);
 }
}

Which two modifications, when made independently, enable the code to print joe: true: 100.0? (Choose two.)
Go to Question: