7.2k views
2 votes
Public static double secret(int first, double second)

{
double temp;
if (second > first)
temp = first * second;
else
temp = first - second;
return temp;
}

Which of the following is NOT part of the heading of the method in the accompanying figure?
a. public
b. static
c. secret(int first, double second)
d. double temp;

1 Answer

5 votes

Answer:

d. double temp;

Step-by-step explanation:

Given

The above code segment

Required

Which is not part of the method definition

The method in the above program is:

public static double secret(int first, double second)

Looking through the options, we can conclude that:

d. double temp;

..... is not a part of the method

User David Drever
by
4.9k points