多选题
Given:
37. boolean b=false;
38. int i=7;
39. double d=1.23;
40. float f=4.56f;
41.
42. // insert code here
Which line(s) of code, inserted independently at line 42, will compile and run without exception? (Choose all that apply.)
A、
System.out.printf(" %b", b);
B、
System.out.printf(" %i", i);
C、
System.out.format(" %d", d);
D、
System.out.format(" %d", i);
E、
System.out.format(" %f", f);
【正确答案】
A、D、E
【答案解析】
提交答案
关闭