answersLogoWhite

0

At least in Java, that's legal - 2 is treated as an int, which can be converted without problems to the float type.

User Avatar

Wiki User

12y ago

What else can I help you with?