Question: If a method is written to receive an int parameter, and you pass a double to the method, then the method will _ _ _
If a method is written to receive an int parameter, and you pass a double to the method, then the method will
A work correctly; the double will be promoted to an int
B work correctly, but the double might lose some dataC execute but issue a warning
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
