Multiple Choice Question

Quiz Guidelines

 

QID: 
94
Question: 

Given:

public class Employee{
String name;
public Employee(){
}
}

Which of the following lines creates an Employee instance?

Select 1 option

A. Employee e;
B. Employee e = new Employee();
C. Employee e = Employee.new();
D. Employee e = Employee();

Q&A Set: