Multiple Choice
Which of the following statements will correctly convert the data type, if x is a float and y is a double?
A) x = float y;
B) x = <float>y;
C) x = (float) y;
D) x = y;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q42: In Java, _ must be declared before
Q43: What would be displayed as a result
Q44: To compile a program named First you
Q45: Variables are classified according to their<br>A) names<br>B)
Q46: A value that is written into the
Q47: If the following Java statements are executed,
Q48: A variable's scope is the part of
Q49: Java is not case sensitive.
Q51: Which of the following is a named
Q52: To print "Hello, world" on the monitor,