Question: Given the following class, which method signature could be successfully added to the class as an overloaded version of the findAverage() method? A. public Long

Given the following class, which method signature could be successfully added to the class as an overloaded version of the findAverage() method? 

public class Calculations { public Integer findAverage (int sum) { return sum;

A. public Long findAverage(int sum)

B. public Long findAverage(int sum, int divisor)

C. public Integer average(int sum)

D. private void findAverage(int sum).

public class Calculations { public Integer findAverage (int sum) { return sum; } }

Step by Step Solution

3.50 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Method overloading in Java allows you to create multiple methods with the same name but with different parameters number of parameters type of paramet... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!