When the declaration int y = 5; is followed by the assignment y += 3.3; the value of y is _______________.
Fill in the blank(s) with the appropriate word(s).
8 [Note: You might expect a compilation error on the assignment statement. The Java Language Specification says that compound assignment operators perform an implic- it cast on the right-hand expression’s value to match the type of the variable on the operator’s left side. So the calculated value 5 + 3.3 = 8.3 is actually cast to the int value 8.].
Computer Science & Information Technology
You might also like to view...
Which of the following is not allowed?
a. Objects of abstract classes. b. Multiple pure virtual functions in a single abstract class. c. References to abstract classes. d. Arrays of pointers to abstract classes.
Computer Science & Information Technology
How do the Linux fork and clone system calls differ? How are they alike?
What will be an ideal response?
Computer Science & Information Technology