Java软件工程师面试题姓名:面试日期与时间:年月日:为了更全面地了解你的专业能力,请你尽力回答以下问题,谢谢合作!1.SQLSERVER有numeric类型自动序列递增,请简述一下ORACLE中是如何实现序列自动自增功能的。2.写出ORACLE中的日期函数。3.简述一下STRUCTS的组成和处理过程。4.Whatwillbetheoutputwhenyoucompileandexecutethefollowingprogram.publicclassBase{privatevoidtest(){inti=1;switch(i){case0:System.out.println("zero");break;case1:System.out.println("one");case2:System.out.println("two");default:System.out.println("default");}}staticpublicvoidmain(String[]a){newBase().test();}}Selectmostappropriateanswer.a)oneb)one,defaultc)one,two,defaultd)defaulte)CompilationError.switchcannottakeanintasanargument5.Forwhatvalueofi,thefollowingprogramwilloutput"Lessthan20"publicclassBase{privatevoidtest(){inti;if(i<10)System.out.println("Lessthan10");elseif(i<20)System.out.println("Lessthan20");elseSystem.out.println("Notlessthan10");}staticpublicvoidmain(String[]a){newBase().test();}}第1页,共页Selectallappropriateanswers.Java软件工程师面试题a)0b)10c)11d)19.999;e)(int)19.99f)None6.Forwhatvalueofi,thefollowingprogramwilloutput"NotGreaterthan10"publicclassBase{privatevoidtest(){inti;if(i>10)System.out.println("Greaterthan10");elseif(i<10)System.out.println("Lessthan10");elseif(i>20)System.out.println("Greaterthan20");elseSystem.out.println("NotGreaterthan10");}staticpublicvoidmain(String[]a){newBase().test();}}Selectmostappropriateanswer.a)0b)10c)11d)100e)None7.Themethodtest()throwsanIOException.Howdoyouspecifythat?importjava.io.*;importjava.net.*;publicclassBase{privatevoidtest(){Stringa=null;if(a==null)//throwsIOException}}Selectallvalidanswersa)privatevoidtest()throwIOExceptionb)privatevoidtest()thrownewIOException("")c)privatevoidtest()throwsIOException()d)privatevoidtest()throwsIOExceptione)privatevoidtest()raiseIOException答题区:答题人签名:日期:20年月日第2页,共页答题区:Java软件工程师面试题答题人签名:日期:20年月日第页,共页答案:1.通过设置序列Java软件工程师面试题2.Datetimetimestamp3.MVCmodelviewcontro4.b5.cd6.b7.d