Consider the following Java declaration and assignment statement.

float x = y; Which one of the following types is "y" NOT allowed to be? Select one: a. double b. long c. int d. short e. float

Java automatically converts values from short, int, and long to float. It does not automatically convert double to float. The correct answer is: double

Related Posts

0 Comments

12345

    00