Multiple Choice
What will be returned from the following method? public static double methodA()
{
Double a = 8.5 + 9.5;
Return a;
}
A) 18.0
B) 18 (as an integer)
C) 8
D) This is an error
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q4: Values stored in local variables _.<br>A) are
Q7: No statement outside the method in which
Q9: This type of method performs a task
Q9: In the method header the static method
Q14: Local variables:<br>A) are hidden from other methods<br>B)
Q25: A value-returning method can return a reference
Q27: All @param tags in a method's documentation
Q37: Which of the following is not a
Q39: What is wrong with the following method
Q42: Which of the following would be a