Multiple Choice
If x is an int and y is a float, all of the following are legal except which assignment statement?
A) y = x;
B) x = y;
C) y = (float) x;
D) x = (int) y;
E) all of the above are legal
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q13: Given four int values, x1, x2, y1,
Q29: A variable of type boolean will store
Q35: Provide an example of how you might
Q43: Using getCurrencyInstance( ) formats a variable, automatically
Q45: What will be the result of the
Q46: Use the following class definition to answer
Q49: If you want to output a double
Q50: Consider the following paint method and answer
Q51: Many Java drawing shapes are specified using
Q52: Given the following assignment statement, which of