Which of the following could be the last legally coded line of a method declared as public

Question:

Which of the following could be the last legally coded line of a method declared as public static int getVal(double sum)?
a. return;
b. return 77;
c. return 2.3;
d. Any of these could be the last coded line of the method.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: