文档介绍:第3次作业一、程序阅读题(本大题共30分,共6小题,每小题5分):Howareyou?.*;lassTest{publicstaticvoidmain(Stringargs[])throwsIOException{Fileinputfile=newFile(“”);FileReaderin=newFileReader(inputfile);intc;while((c=())!=-1){if(c==’’){();continue;}((char)c);}();}}{intx=3;publicBase(){}publicvoidshow(){("Thevalueis"+x);}}classDerivedextendsBase{intx=2;publicDerived(){}publicvoidshow(){("Thevalueis"+x);}}lasstest{publicstaticvoidmain(Stringargs[]){Baseb=newDerived();();("Thevalueis"+);}}:若执行命令:javaABheLLO,则输出为______。:输出结果为:{intj;}classsample{inttest(Intb){return++j;}}classsample1{publicstaticvoidmain(Stringargs[]){samplex=newsample();Intc=newInt();j=2;(“first:”+(c));(“second:”+(c));}}{publicstaticvoidmain(Stringargs[]){intl=0;do{(“Doingitforlis:”+l);}while(--l>0)}}二、简答题(本大题共30分,共5小题,每小题6分)?如何创建一个对象?(applet)到底与应用程序(application)有何不同???importjavio.*;lassReverse{publicstaticvoidmain(Stringargs[]){inti,n=10;inta[]=newint[10];for(i=0;i<n;i++)try{BufferedReaderbr=newBufferedReader(newInputStreamReader());a[i]=(());}catch(IOExceptione){};for(i=n-1;i>=0;i――)(a[i]+"")