Question: public static double addition (int x, double y) { } double sum =x+y; return sum; 1. What is name of the method in the
public static double addition (int x, double y) { } double sum =x+y; return sum; 1. What is name of the method in the code fragment above? (1 Marks) 2. What is the return type of the method in the code fragment above? (1 Marks) 3. Which of the following is the valid call to the method above? (1 Mark)
Step by Step Solution
There are 3 Steps involved in it
The name of the method in the code fragment above is addition The return typ... View full answer
Get step-by-step solutions from verified subject matter experts
