Question: If a method is written to receive a double parameter, and you pass an integer to the method, then the method will _____________. a. Work
If a method is written to receive a double parameter, and you pass an integer to the method, then the method will _____________.
a. Work correctly; the integer will be promoted to a double
b. Work correctly; the parameter type will automatically become an integer
c. Execute, but any output will be incorrect
d. Not work; an error message will be issued
Step by Step Solution
3.30 Rating (159 Votes )
There are 3 Steps involved in it
a Work corr... View full answer
Get step-by-step solutions from verified subject matter experts
