单项选择题 class Super { public Integer getLenght() { return new Integer(4); } } public class Sub extends Super { public Long GetLenght() { return new Long(5); } public static void main(String[] args) { Super sooper = new Super(); Sub sub = new Sub(); System.out.println( sooper.getLenght().toString() + “,” + sub.getLenght().toString() ); } } What is the output?()
单项选择题 1.packagefoo;2.3.importjava.util.Vector;4.5.protectedclassMyVectorVector{6.initi=1;7.publicMyVector(){8.i=2;9.}10.}11.12.publicclassMyNewVectorextendsMyVector{13.publicMyNewVector(){14.i=4;15.}16.publicstaticvoidmain(Stringargs[]){17.MyVectorv=newMyNewVector();18.}19.}Whatistheresult?()
单项选择题 public class Alpha1 { public static void main( String[] args ) { boolean flag; int i=0; do { flag = false; System.out.println( i++ ); flag = i < 10; continue; } while ( (flag)? true:false ); } } What is the result?()