Question: 2. Consider this method then answer the questions that follow. ow. I public static double mystery (double a, double b) { double value = 1.0;
2. Consider this method then answer the questions that follow. ow. I public static double mystery (double a, double b) { double value = 1.0; if (ab) value = 1.0; return value; } a) What is the identifier of the method? (1 mark) b) What are its parameters? (2 marks) c) What type of value is returned by the method? (2 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
