Question: Suppose a method named show Values accepts two int arguments. Which of the following method headers is written correctly? a) Public static void showValues() b)

Suppose a method named show Values accepts two int arguments. Which of the following method headers is written correctly?

a) Public static void showValues()

b) Public static void showValues(int num1, num2)

c) Public static void showValues(num1, num2)

d) Public static void showValues(int num1, int num2)  

Step by Step Solution

3.29 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

d Public static void showValuesint nu... 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 Starting Out With Java From Control Structures Questions!