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
Q9: Which of the following would be a
Q10: Any method that calls a method with
Q13: When an argument is passed to a
Q15: You should always document a method by
Q15: Which of the following is not part
Q31: The lifetime of a method's local variable
Q34: In the method header, the method modifier
Q48: When an object, such as a String,