Recent questions tagged type-conversion

3.6k
views
1 answers
0 votes
What is the output of this program? class Conversion { public static void main(String args[]) { double a = 295.04; int b = 300; byte c = (byte) a; byte d = (byte) b; ... println(c + " " + d); } }a) 38 43b) 39 44c) 295 300d) 295.04 300
To see more, click for the full list of questions or popular tags.