Question: int i = 3 4 3 4 ; double d = 3 4 3 4 System.out.printf ( % 5 . 1 f % 5
int ; double
System.out.printff f i d;
is an integer, but the format specifier specifies a format for double value. The code has an error.
The code compiles and runs fine to display
The code compiles and runs fine to display
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
