If a method takes a double as a parameter, you could pass it an int as the actual parameter.

If a method takes a double as a parameter, you could pass it an int as the actual parameter.


Answer: True. Since converting from an int to a double is a widening conversion, it is done automatically, so there would be no error.


Java

Learn More Multiple Choice Question :