What output will the following code produce?
double x = 5.5; int y = (int)x; System.out.println("x is " + x + " and y is " + y);
C. x is 5.5 and y is 5
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
C. x is 5.5 and y is 5
need an explanation for this answer? contact us directly to get an explanation for this answer