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

Verified
Correct Answer:
Verified
Related Questions
Q1: Any method that calls a method with
Q3: In the following code, Integer.parseInt(str) is an
Q24: When you pass an argument to a
Q25: A value-returning method must specify this as
Q25: A value-returning method can return a reference
Q26: Which of the following values can be
Q27: All @param tags in a method's documentation
Q31: The lifetime of a method's local variable
Q31: Given the following method header, which of
Q52: You must have a return statement in