为你找到 1000 条关于 Java语言题目2-7 的结果
JVM在执行一个Java类时,大致采用以下哪个过程?
Java虚拟机把描述类的数据从Class文件加载到内存,并对数据进行校验、转换解析和初始化,最终形成可以被虚拟机直接使用的Java类型,这就是虚拟机的加载机制。
publicclassTest{publicstaticvoidmain(String[]args){shorta,b,c;a=1;b=2;c=a+b;a+=2;}}以上代码中,哪一句是错误的?
在java中,已定义两个接口B和C,要定义一个实现这两个接口的类,以下语句正确的是()
publicclassOuter{publicvoidsomeOuterMethod(){//代码(1)}publicclassInner{}publicstaticvoidmain(String[]arg){Outero=newOuter();//代码(2)}}以下哪种情况实例化了一个内部类对象()?
当2个或多个对象被添加作为同一个事件的监听器,那么当事件触发的时候哪个监听器对象被首先调用?()
importjava.io.PrintWriter;classDoFormat{publicstaticvoidmain(String[]args){intx=42;inty=12345;floatz=7;System.out.format("-%4d-",x);System.out.format("-%4d-",y);System.out.format("-%4.1f-",z);}}以上代码结果是()?
%4d 表示输出整数占4个位置,不够的左边补齐空格,超过4位的实际多少位就显示多少位。%4.1f 表示输出小数占4个位置,小数点后面留1位,不够4为的左边空格补齐。
Java提供的类()来进行有关Internet地址的操作?
Java源文件的格式是
Java中创建对象的关键字是
Java实现类继承的关键字是
在Java中,下面接口以键-值对的方式存储对象的是()
importjava.io.PrintWriter;classDoFormat{publicstaticvoidmain(String[]args){intx=42;inty=12345;floatz=7;System.out.format("-%4d-",x);System.out.format("-%4d-",y);System.out.format("-%4.ld-",z);}}以上代码的结果是()?
7
PartIIReadingComprehensionDirections:Thereareseveralpassagesinthissection.Eachpassageisfollowedbysomequestionsorunfinishedstatements.ForeachofthemtherearefourchoicesmarkedA),B),C)andD).Youshoulddecideonthebestchoice.PassageOneQuestions2to6arebasedonthefollowingpassage.“Chinaisexpectedtocompleteitsfirstexploration(探索)ofthemoonin2010andwillfoundamoonbasejustaswedidontheNorthandSouthPoles,”OuyangZiyuan,headofChina’smoonexplorationprogram,promisedduringnationalscienceandtechnologyweek.Afteritsfirstmaninspace,Chinaplansaspacelaboratory,alunarorbitertolookforvaluableelementsandminerals,robotlandingsonthemoonandthenthehumantouchdown.Thepriceofspaceexplorationisenormous.RussiaandtheUS,theonlytwocountriestohaveachievedmannedflight,arestrugglingtokeeptheirnewinvestment,theinternationalspacestation.ButChina,whichhasalongtraditioninphysics,mathematicsandengineering,findsitsdoctoralgraduateswelcomedintheUSandEuropefordecades.Andithasbeenabletolearnfrom40yearsofpioneeringsuccessesandmistakesbytheUSSRandtheUSA.Spaceflightisagambleandthestakes(赌注)arehigh.Ifsuccessful,Chinacouldbecomeamemberoftheworld’smostexclusiveclub,setupasecondhomeonthemoonandgetapowerfulhandatthestrategicbargainingtable.TwodesignersfromtheShenzhouIIIprojectsaidthat12astronautsnowareundergoingintensivetraining.Onemoreunmannedspaceflightisplannedbeforethefirstmannedlaunch.ExpertssaythattheShenzhouspacecraftalreadyprovidesChinawithaspacevehiclecapableofmounting(发起)alunarprogram.ChinesescientistshavealsopredictedthatMarswillbethenexttargetafterthemoon.2.AccordingtoOuyangZiyuan,________.
PartIIReadingComprehensionDirections:Thereareseveralpassagesinthissection.Eachpassageisfollowedbysomequestionsorunfinishedstatements.ForeachofthemtherearefourchoicesmarkedA),B),C)andD).Youshoulddecideonthebestchoice.PassageOneQuestions2to6arebasedonthefollowingpassage.“Chinaisexpectedtocompleteitsfirstexploration(探索)ofthemoonin2010andwillfoundamoonbasejustaswedidontheNorthandSouthPoles,”OuyangZiyuan,headofChina’smoonexplorationprogram,promisedduringnationalscienceandtechnologyweek.Afteritsfirstmaninspace,Chinaplansaspacelaboratory,alunarorbitertolookforvaluableelementsandminerals,robotlandingsonthemoonandthenthehumantouchdown.Thepriceofspaceexplorationisenormous.RussiaandtheUS,theonlytwocountriestohaveachievedmannedflight,arestrugglingtokeeptheirnewinvestment,theinternationalspacestation.ButChina,whichhasalongtraditioninphysics,mathematicsandengineering,findsitsdoctoralgraduateswelcomedintheUSandEuropefordecades.Andithasbeenabletolearnfrom40yearsofpioneeringsuccessesandmistakesbytheUSSRandtheUSA.Spaceflightisagambleandthestakes(赌注)arehigh.Ifsuccessful,Chinacouldbecomeamemberoftheworld’smostexclusiveclub,setupasecondhomeonthemoonandgetapowerfulhandatthestrategicbargainingtable.TwodesignersfromtheShenzhouIIIprojectsaidthat12astronautsnowareundergoingintensivetraining.Onemoreunmannedspaceflightisplannedbeforethefirstmannedlaunch.ExpertssaythattheShenzhouspacecraftalreadyprovidesChinawithaspacevehiclecapableofmounting(发起)alunarprogram.ChinesescientistshavealsopredictedthatMarswillbethenexttargetafterthemoon.2.AccordingtoOuyangZiyuan,________.
孙子兵法的作者是孙武。