Examlex

Solved

Complete the Following Statement That Finds the Average Salary of Employees

question 68

Multiple Choice

Complete the following statement that finds the average salary of employees who are Database Administrators.Assume that employeeStream is a stream of Employee objects and the getSalary method returns the employee's salary as an integer.Also, assume the getTitle method returns a String representing the employee's title. Complete the following statement that finds the average salary of employees who are Database Administrators.Assume that employeeStream is a stream of Employee objects and the getSalary method returns the employee's salary as an integer.Also, assume the getTitle method returns a String representing the employee's title.    A) Optional<Double> B) OptionalDouble C) double D) Double


Definitions:

Related Questions