Question: What will the following code output? Double d = 12.9; Int i = (int)d; System.out.println(i);
What will the following code output?
Double d = 12.9;
Int i = (int)d;
System.out.println(i);
Step by Step Solution
3.46 Rating (175 Votes )
There are 3 Steps involved in it
The code will output 12 This is because the double va... View full answer
Get step-by-step solutions from verified subject matter experts
