A.16>4
B.16/2
C.16*4
D.16>>2
E.16/22
F.16>>>2
第1题:
A.df=newDateFormat();
B.df=Date.getFormatter();
C.df=date.getFormatter();
D.df=date.getDateFormatter();
E.df=DateFormat.getDateInstance();
F.df=DateFormat.getInstance();
第2题:
A.public class MinMax<?> {
B.public class MinMax<? extends Number> {
C.public class MinMax<N extends Object> {
D.public class MinMax<N extends Number> {
E.public class MinMax<? extends Object> {
F.public class MinMax<N extends Integer> {
第3题:
Given:
11.//insertcodehere
12.privateNmin,max;
13.publicNgetMin(){returnmin;}
14.publicNgetMax(){returnmax;}
15.publicvoidadd(Nadded){
16.if(min==null||added.doubleValue()<min.doubleValue())
17.min=added;
18.if(max==null||added.doubleValue()>max.doubleValue())
19.max=added;
20.}
21.}
Whichtwo,insertedatline11,willallowthecodetocompile?()
第4题:
A.for(inti=0;i<a.size();i++) System.out.println(a.get(i)));
B.for(inti=0;i<a.size();i++) System.out.println(a[i]);
C.while(iter.hasNext()) System.out.println(iter.next());
D.for(inti=0,i<a.size();i++) System.out.println(iter[i]);
E.for(inti=0;i<a.size();i++) System.out.println(iter.get(i));
第5题:
A.
B.
C.
D.
E.
第6题:
A.System.load("prop.custom");
B.System.getenv("prop.custom");
C.System.property("prop.custom");
D.System.getProperty("prop.custom");
E.System.getProperties().getProperty("prop.custom");